1"use strict";(self.webpackChunkkompra_front2_0=self.webpackChunkkompra_front2_0||[]).push([[2],{70002:(Cn,at,l)=>{l.r(at),l.d(at,{RisksComponent:()=>pn});var k=l(45529),C=l(69307),g=l(71993),U=l(57582),_=l(96814),t=l(65879),I=l(52572),ot=l(37398),H=l(48180),J=l(99397),q=l(22096),K=l(64716),r=l(39769),T=l(70415),G=l(17464),ct=l(9876),F=l(30328),X=l(33627),A=l(61766),b=l(5238),w=l(90163),z=l(24557),Q=l(73175),V=l(50862),W=l(18160),N=l(90346),tt=l(26306),$=l(26932),et=l(2425),f=l(84319),m=l(84221),L=l(2256),lt=l(73107),st=l(43467),j=l(10179),E=l(36223);function ht(n,o){if(1&n&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.ekj("text--green",e.allCount+e.otherRisksCount<=0)("text--red",e.allCount+e.otherRisksCount>0),t.xp6(1),t.hij("",e.allCount+e.otherRisksCount,"/")}}function mt(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,ht,2,5,"span",9),t.TgZ(2,"span",10),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought),t.xp6(2),t.Oqu(e.isIp?e.riskFactorsCount.ip.owner:e.riskFactorsCount.ul.owner)}}function ft(n,o){if(1&n&&(t.TgZ(0,"div",11),t._UZ(1,"div",12),t.TgZ(2,"div",10),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(3),t.hij("\xa0/",e.isIp?e.riskFactorsCount.ip.owner:e.riskFactorsCount.ul.owner,"")}}function St(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",7),t.YNc(2,mt,4,2,"div",4),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.ALo(7,"async"),t.YNc(8,ft,4,1,"div",8),t.ALo(9,"async"),t.ALo(10,"async"),t.ALo(11,"async"),t.ALo(12,"async"),t.ALo(13,"async"),t.qZA(),t.BQk()),2&n){const e=t.oxw();let s,i;t.xp6(2),t.Q6J("ngIf",!(t.lcZ(3,2,e.selectOwnerLoaders$)||null!=(s=t.lcZ(4,4,e.aisoip$))&&s.loading||(null==(s=t.lcZ(5,6,e.aisoip$))?null:s.status)===e.STATUS.SYNC||null!=(s=t.lcZ(6,8,e.zapret$))&&s.loading||(null==(s=t.lcZ(7,10,e.zapret$))?null:s.status)===e.STATUS.SYNC||e.ownerLoadersSignals())),t.xp6(6),t.Q6J("ngIf",t.lcZ(9,12,e.selectOwnerLoaders$)||(null==(i=t.lcZ(10,14,e.aisoip$))?null:i.loading)||(null==(i=t.lcZ(11,16,e.aisoip$))?null:i.status)===e.STATUS.SYNC||(null==(i=t.lcZ(12,18,e.zapret$))?null:i.loading)||(null==(i=t.lcZ(13,20,e.zapret$))?null:i.status)===e.STATUS.SYNC||e.ownerLoadersSignals())}}function Ct(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(1,a,"risk_factors.debtors_docs"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","risk_factors.debtors_docs")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("item",e)("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.OWNER_FR)}}function At(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openTerrorismSidebar(c.terrorType.terrorism_financial,a,"risk_factors.terror_financing"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","risk_factors.terror_financing")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("item",e)("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.TERRORISM_UL)}}function yt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(2,a,"risk_factors.criminal_investigation"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","risk_factors.criminal_investigation")("item",e)("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.OWNER_FR)}}function xt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(3,a,"risk_factors.missing_person"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();
1t.xp6(1),t.Q6J("identifier",s.identifier)("name","risk_factors.missing_person")("item",e)("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.OWNER_FR)}}function kt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(4,a,"risk_factors.alimony_debtors"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","risk_factors.alimony_debtors")("item",e)("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.OWNER_FR)}}function Tt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(5,a,"risk_factors.gis"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","risk_factors.gis")("item",e)("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.OWNER_FR)}}function Nt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getAisoipDetails(a,"zapret_executives.proceedings_title"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","zapret_executives.proceedings_title")("item",e)("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.AISOIP)}}function Dt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getZapretDetails(a,"zapret_executives.title"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","zapret_executives.title")("item",e)("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.ZAPRET)}}function Et(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",16),t.NdJ("downloadDocument",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.loadDoc())})("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getTaxDebtOwnerDetails(a,"tax_debt_risk_factors.title"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","tax_debt_risk_factors.title")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,13,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,15,s.managers_status$))("managersHasError",t.lcZ(4,17,s.managers_error$))("managersLoading",t.lcZ(5,19,s.managers_loading$))("item",e)("isTax",!0)("downloadButtonText",t.lcZ(6,21,"tax_debt_risk_factors.download_certificate"))("taxLoadingPdf",s.taxLoadingPdf)("sidebarName",s.SIDEBAR.TAX_DEBT_SECTION)("loadingPdf",s.taxLoadingPdf)}}function vt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getMoreDebtors(a,"bankruptcy.bankruptcy_proceedings"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();
1t.xp6(1),t.Q6J("identifier",s.identifier)("name","bankruptcy.bankruptcy_proceedings")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,9,s.noOwnerRiskFactorStatus$))("item",e)("managersStatus",t.lcZ(3,11,s.managers_status$))("managersHasError",t.lcZ(4,13,s.managers_error$))("managersLoading",t.lcZ(5,15,s.managers_loading$))("sidebarName",s.SIDEBAR.DEBTORS)}}function bt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",17),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.debtOnCustomsDetails(a,"debt_on_customs.title"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","debt_on_customs.title")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,10,s.noOwnerRiskFactorStatus$))("managersStatus",t.lcZ(3,12,s.managers_status$))("managersHasError",t.lcZ(4,14,s.managers_error$))("managersLoading",t.lcZ(5,16,s.managers_loading$))("item",e)("sidebarName",s.SIDEBAR.DEBT_ON_CUSTOMS_DETAILS)("isTax",!1)}}function Zt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",18),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveRefArrests(a,"arrests.title_4"))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","arrests.title_4")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,11,s.noOwnerRiskFactorStatus$))("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(3,13,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("managersStatus",t.lcZ(4,15,s.managers_status$))("managersHasError",t.lcZ(5,17,s.managers_error$))("managersLoading",t.lcZ(6,19,s.managers_loading$))}}function It(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",18),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveRefArrests(a,"arrests.title_5"))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","arrests.title_5")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,11,s.noOwnerRiskFactorStatus$))("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(3,13,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("managersStatus",t.lcZ(4,15,s.managers_status$))("managersHasError",t.lcZ(5,17,s.managers_error$))("managersLoading",t.lcZ(6,19,s.managers_loading$))}}function Ft(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",18),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveRefArrests(a,"arrests.title_6"))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","arrests.title_6")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,11,s.noOwnerRiskFactorStatus$))("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(3,13,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("managersStatus",t.lcZ(4,15,s.managers_status$))("managersHasError",t.lcZ(5,17,s.managers_error$))("managersLoading",t.lcZ(6,19,s.managers_loading$))}}function Qt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",18),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveRefArrests(a,"arrests.title_7"))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("name","arrests.title_7")("isAccess",s.isCardBought)("identifierNotFounded",t.lcZ(2,11,s.noOwnerRiskFactorStatus$))("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(3,13,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("managersStatus",t.lcZ(4,15,s.managers_status$))("managersHasError",t.lcZ(5,17,s.managers_error$))("managersLoading",t.lcZ(6,19,s.managers_loading$))}}const Lt=function(n){return{"accordion--active":n}};let Rt=(()=>{class n{get otherRisksCount(){return this.ownerStatusNum()+(this.hasDebtorsData()?1:0)+(this.statusOwnerRiskSignal()?1:0)+(this.countedStatuses.includes(this.ownerDebtorsStatusSignal()?.status)?1:0)+(this.statusOwnerTerrorismFinancialRiskSignal()?1:0)+this.ownerArrestsAisoipCount()}constructor(e,s,i,a,c,u,d,h,S,x,O){this.destroy=e,this.toastr=s,this.risksStore=i,this.store=a,this.taxDebtStore=c,this.rootStore=u,this.taxDebtService=d,this.arrestsFlStore=h,this.storeDebtorsFl=S,this.terrorismUlStore=x,this.debtOnCustomsStore=O,this.class="accordion",this.countedStatuses=[r.Q_.YES,r.Q_.EXCLUDED],this.isAccordion=!0,this.taxLoadingPdf=!1,this.terrorType=w.FG,this.debtOnCustomsStatusSignal=this.debtOnCustomsStore.statusOwner,this.terrorismFinancial
1Status=this.terrorismUlStore.statusOwnerTerrorismFinancial,this.statusOwnerRiskSignal=this.debtOnCustomsStore.statusOwnerRisk,this.statusOwnerTerrorismFinancialRiskSignal=this.terrorismUlStore.statusOwnerTerrorismFinancialRisk,this.noOwnerRiskFactorStatus$=this.rootStore.select(T.fC),this.managers_error$=this.rootStore.select(T.uh),this.managers_loading$=this.rootStore.select(T.M6),this.managers_status$=this.rootStore.select(T.zJ),this.risk1$=this.rootStore.select((0,F.cM)(1)),this.risk2$=this.rootStore.select((0,F.cM)(2)),this.risk3$=this.rootStore.select((0,F.cM)(3)),this.risk4$=this.rootStore.select((0,F.cM)(4)),this.risk5$=this.rootStore.select((0,F.cM)(5)),this.selectOwnerLoaders$=this.rootStore.select(F.S2),this.aisoip$=this.rootStore.select(G.Tn),this.zapret$=this.rootStore.select(X.I1),this.hasDebtorsData=this.storeDebtorsFl.hasData,this.ownerDebtorsStatusesSignal=this.storeDebtorsFl.ownerStatuses,this.ownerDebtorsStatusSignal=this.storeDebtorsFl.ownerStatus,this.debtorsTabs=this.storeDebtorsFl.moreTabs,this.sidebar=r.jy,this.sidebar$=this.rootStore.select(C.qT),this.allCount=0,this.ownerStatusTaxDebt=this.taxDebtStore.ownerStatus,this.ownerStatusNum=this.taxDebtStore.ownerStatusNum,this.arrestsType_4=this.arrestsFlStore.ownerArrestsType4,this.arrestsType_5=this.arrestsFlStore.ownerArrestsType5,this.arrestsType_6=this.arrestsFlStore.ownerArrestsType6,this.arrestsType_7=this.arrestsFlStore.ownerArrestsType7,this.ownerArrestsAisoipCount=this.arrestsFlStore.ownerArrestsAisoipCount,this.ownerLoadersSignals=(0,t.Flj)(()=>this.terrorismFinancialStatus()?.loading||this.terrorismFinancialStatus()?.status===r.Q_.SYNC||this.ownerStatusTaxDebt()?.loading||this.ownerStatusTaxDebt()?.status===r.Q_.SYNC||this.ownerDebtorsStatusSignal()?.loading||this.ownerDebtorsStatusSignal()?.status===r.Q_.SYNC||this.debtOnCustomsStatusSignal()?.loading||this.debtOnCustomsStatusSignal()?.status===r.Q_.SYNC||this.arrestsType_4()?.loading||this.arrestsType_4()?.status===r.Q_.SYNC||this.arrestsType_5()?.loading||this.arrestsType_5()?.status===r.Q_.SYNC||this.arrestsType_6()?.loading||this.arrestsType_6()?.status===r.Q_.SYNC||this.arrestsType_7()?.loading||this.arrestsType_7()?.status===r.Q_.SYNC),this.STATUS=r.Q_,this.riskFactorsCount=N.yl,this.SIDEBAR=r.jy}ngOnInit(){(0,I.a)([this.risk1$,this.risk2$,this.risk3$,this.risk4$,this.risk5$,this.aisoip$,this.zapret$]).pipe((0,g.sL)(this.destroy),(0,ot.U)(([e,s,i,a,c,u,d])=>{this.allCount=(this.countedStatuses.includes(e?.status)?1:0)+(this.countedStatuses.includes(s?.status)?1:0)+(this.countedStatuses.includes(i?.status)?1:0)+(this.countedStatuses.includes(a?.status)?1:0)+(this.countedStatuses.includes(c?.status)?1:0)+(this.countedStatuses.includes(u?.status)?1:0)+(this.countedStatuses.includes(d?.status)?1:0)})).subscribe()}toggleAccordion(){this.isAccordion=!this.isAccordion}setNoYesStatus(e){switch(e.status){case r.Q_.NO:this.risksStore.updateCurrentPage(r.jy.NO);break;case r.Q_.OFF:this.risksStore.updateCurrentPage(r.jy.OFF);break;case r.Q_.NOT_RESIDENT:this.risksStore.updateCurrentPage(r.jy.NOT_RESIDENT);break;case r.Q_.REJECTED:this.risksStore.updateCurrentPage(r.jy.REJECTED);break;default:this.risksStore.updateCurrentPage(e.error?r.jy.ERROR:r.jy.SYNC)}}getDetails(e,s,i){this.risksStore.setItem(null),this.risksStore.setPageName(i),this.rootStore.dispatch(ct.y.setTypeId({typeId:e})),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.rootStore.dispatch(ct.y.loadContent({typeId:e})),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.OWNER_FR):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}getAisoipDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.rootStore.dispatch(z.j.loadOwnerDetails({currentTypeDetails:Q.E.OWNER})),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.AISOIP):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}getZapretDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.rootStore.dispatch(V.q.loadOwnerDetails({currentTypeDetails:Q.E.OWNER})),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.ZAPRET):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}getTaxDebtOwnerDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s);const i=(0,$.g)(e?.status,e?.cacheStatus);[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)||i?(this.identifier&&this.taxDebtStore.getDetailsEffect({type:W.x.OWNER}),i||[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.TAX_DEBT_SECTION):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}loadDoc(){this.taxLoadingPdf||(this.taxLoadingPdf=!0,this.identifier&&this.taxDebtService.getOwnerDoc(this.identifier).pipe((0,H.q)(1),(0,J.b)(e=>{window.open(URL.createObjectURL(e),"_target")}),(0,tt.K)(e=>(this.toastr.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0438!"),(0,q.of)(null))),(0,K.x)(()=>{this.taxLoadingPdf=!1})).subscribe())}openTerrorismSidebar(e,s,i){this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.terrorismUlStore.loadTerrorismDetailsOwnerEffect(e),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.TERRORISM_UL):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}getMoreDebtors(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.storeDebtorsFl.setData(this.ownerDebtorsStatusesSignal()),this.storeDebtorsFl.getDebtorsFlDetailsByIdEffect({typeId:this.debtorsTabs()[0],person:"OWNER",id:this.identifier}),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.DEBTORS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}debtOnCustomsDetails(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.debtOnCustomsStore.loadDetailsOwnerEffect(),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.DEBT_ON_CUSTOMS_DETAILS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}saveRefArrests(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.YES):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(e)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(t.ktI),t.Y36(et._W),t.Y36(f.J),t.Y36(m.yh),t.Y36(L.NX),t.Y36(m.yh),t.Y36(L.N_),t.Y36(lt.NP),t.Y36(st.xf),t.Y36(w.oj),t.Y36(j.v))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-owner"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{isIp:"isIp",managementBlock:"managementBlock",isAuth:"isAuth",isCardBought:"isCardBought",identifier:"identifier"},standalone:!0,features:[t.jDz],decls:32,vars:36,consts:[[1,"accordion","accordion--risks",3,"ngClass"],[1,"accordion__header",3,"click"],[1,"accordion__toggle","icon"],[1,"accordion__title"],[4,"ngIf"],[1,"accordion__body"],[1,"accordion__section"],[1,"accordion__status"],["class","flex-center",4,"ngIf"],["class","text",3,"text--green","text--red",4,"ngIf"],[1,"text"],[1,"flex-center"],[1,"loader","loader--20"],[3,"identifier","name","isAccess","identifierNotFounded","item","managersStatus","managersHasError","managersLoading","sidebarName","changeDetailsPage"],["data-id","financing-of-terrorism",3,"identifier","name","isAccess","identifierNotFounded","item","managersStatus","managersHasError","managersLoading","sidebarName","changeDetailsPage"],[3,"identifier","name","item","isAccess","identifierNotFounded","managersStatus","managersHasError","managersLoading","sidebarName","changeDetailsPage"],[3,"identifier","name","isAccess","identifierNotFounded","managersStatus","managersHasError","managersLoading","item","isTax","downloadButtonText","taxLoadingPdf","sidebarName","loadingPdf","downloadDocument","changeDetailsPage"],["data-id","debt-on-customs",3,"identifier","name","isAccess","identifierNotFounded","managersStatus","managersHasError","managersLoading","item","sidebarName","
1isTax","changeDetailsPage"],[3,"identifier","name","isAccess","identifierNotFounded","item","url","buttonText","sidebarName","managersStatus","managersHasError","managersLoading","changeDetailsPage"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleAccordion()}),t.TgZ(2,"div",2),t._UZ(3,"icon-chevron-down"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.YNc(7,St,14,22,"ng-container",4),t.qZA()(),t.TgZ(8,"div",5)(9,"div",6),t.YNc(10,Ct,6,17,"ng-container",4),t.ALo(11,"async"),t.YNc(12,At,6,17,"ng-container",4),t.YNc(13,yt,6,17,"ng-container",4),t.ALo(14,"async"),t.YNc(15,xt,6,17,"ng-container",4),t.ALo(16,"async"),t.YNc(17,kt,6,17,"ng-container",4),t.ALo(18,"async"),t.YNc(19,Tt,6,17,"ng-container",4),t.ALo(20,"async"),t.YNc(21,Nt,6,17,"ng-container",4),t.ALo(22,"async"),t.YNc(23,Dt,6,17,"ng-container",4),t.ALo(24,"async"),t.YNc(25,Et,7,23,"ng-container",4),t.YNc(26,vt,6,17,"ng-container",4),t.YNc(27,bt,6,18,"ng-container",4),t.YNc(28,Zt,7,21,"ng-container",4),t.YNc(29,It,7,21,"ng-container",4),t.YNc(30,Ft,7,21,"ng-container",4),t.YNc(31,Qt,7,21,"ng-container",4),t.qZA()()()),2&s&&(t.Q6J("ngClass",t.VKq(34,Lt,i.isAccordion)),t.xp6(5),t.hij(" ",t.lcZ(6,18,"card.history_changes.leader")," "),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought),t.xp6(3),t.Q6J("ngIf",t.lcZ(11,20,i.risk1$)),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought?i.terrorismFinancialStatus():null),t.xp6(1),t.Q6J("ngIf",t.lcZ(14,22,i.risk2$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(16,24,i.risk3$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(18,26,i.risk4$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(20,28,i.risk5$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(22,30,i.aisoip$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(24,32,i.zapret$)),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought?i.ownerStatusTaxDebt():null),t.xp6(1),t.Q6J("ngIf",i.isAuth&&i.isCardBought?i.ownerDebtorsStatusSignal():null),t.xp6(1),t.Q6J("ngIf",i.isAuth&&i.isCardBought?i.debtOnCustomsStatusSignal():null),t.xp6(1),t.Q6J("ngIf",i.arrestsType_4()),t.xp6(1),t.Q6J("ngIf",i.arrestsType_5()),t.xp6(1),t.Q6J("ngIf",i.arrestsType_6()),t.xp6(1),t.Q6J("ngIf",i.arrestsType_7()))},dependencies:[_.mk,k.b,E.R,_.O5,A.X$,_.Ov,b.P],encapsulation:2})}}return n})();var Yt=l(87906),D=l(41343),Pt=l(31311),Bt=l(9596);function Ot(n,o){if(1&n&&(t.TgZ(0,"span",11),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.ekj("text--green",e.allCount<=0)("text--red",e.allCount>0),t.xp6(1),t.hij("",e.allCount,"/")}}function Ut(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Ot,2,5,"span",10),t.TgZ(2,"span",11),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought),t.xp6(2),t.Oqu(e.isIp?e.riskFactorsCount.ip.arrests:e.riskFactorsCount.ul.arrests)}}function Jt(n,o){if(1&n&&(t.TgZ(0,"div",12),t._UZ(1,"div",13),t.TgZ(2,"div",11),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(3),t.hij("\xa0/",e.isIp?e.riskFactorsCount.ip.arrests:e.riskFactorsCount.ul.arrests,"")}}function wt(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Ut,4,2,"div",7),t.ALo(2,"async"),t.YNc(3,Jt,4,1,"div",9),t.ALo(4,"async"),t.qZA()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!t.lcZ(2,2,e.statusLoadings$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(4,4,e.statusLoadings$))}}function $t(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.getArrestsDetails(1,a,"arrests.title_1"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","arrests.title_1")("item",e)("url","https://egov.kz")("sidebarName",s.SIDEBAR.ARRESTS)("sourceLabelKey","card.source_singular")}}function jt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.getArrestsDetails(2,a,"arrests.title_2"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","arrests.title_2")("item",e)("url","https://egov.kz")("sidebarName",s.SIDEBAR.ARRESTS)("sourceLabelKey","card.source_singular")}}function Mt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.getArrestsDetails(3,a,"arrests.title_3"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","arrests.title_3")("item",e)("url","https://egov.kz")("sidebarName",s.SIDEBAR.ARRESTS)("sourceLabelKey","card.source_singular")}}function Ht(n,o){if(1&n&&(t.ynx(0),t.YNc(1,$t,2,7,"ng-container",7),t.ALo(2,"async"),t.YNc(3,jt,2,7,"ng-container",7),t.ALo(4,"async"),t.YNc(5,Mt,2,7,"ng-container",7),t.ALo(6,"async"),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",t.lcZ(2,3,e.status1$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(4,5,e.status2$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(6,7,e.status3$))}}function qt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,"arrests.title_4"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","arrests.title_4")("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(2,8,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("sourceLabelKey","card.source_singular")}}function Kt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,"arrests.title_5"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","arrests.title_5")("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(2,8,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("sourceLabelKey","card.source_singular")}}function Gt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,"arrests.title_6"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","arrests.title_6")("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(2,8,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("sourceLabelKey","card.source_singular")}}function Xt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,"arrests.title_7"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","arrests.title_7")("item",e)("url","https://aisoip.adilet.gov.kz/")("buttonText",t.lcZ(2,8,"arrests.download_details"))("sidebarName",s.SIDEBAR.YES)("sourceLabelKey","card.source_singular")}}const zt=function(n){return{"accordion--active":n}};let Vt=(()=>{class n{constructor(e,s,i,a){this.risksStore=e,this.destroy=s,this.store=i,this.utils=a,this.class="accordion",this.countedStatuses=[r.Q_.YES,r.Q_.EXCLUDED],this.status=r.Q_,this.isAccordion=!0,this.status1$=this.store.select(D.UI),this.status2$=this.store.select(D.bX),this.status3$=this.store.select(D.p2),this.status4$=this.store.select(D.ln),this.status5$=this.store.select(D.nA),this.status6$=this.store.select(D.hl),this.status7$=this.store.select(D.NG),this.status8$=this.store.select(D.I1),this.statusLoadings$=this.store.select(D.lT),this.allCount=0,this.riskFactorsCount=N.yl,this.STATUS=r.Q_,this.SIDEBAR=r.jy}ngOnInit(){(0,I.a)([this.status1$,this.status2$,this.status3$,this.status4$,this.status5$,this.status6$,this.status7$,this.status8$]).pipe((0,g.sL)(this.destroy)).subscribe({next:([e,s,i,a,c,u,d,h])=>{this.allCount=(this.countedStatuses.includes(e?.status)?1:0)+(this.countedStatuses.includes(s?.status)?1:0)+(this.countedStatuses.includes(i?.status)?1:0)+(this.countedStatuses.includes(a?.status)?1:0)+(this.countedStatuses.includes(c?.status)?1:0)+(this.countedStatuses.includes(u?.status)?1:0)+(this.countedStatuses.includes(d?.status)?1:0)+(this.countedStatuses.includes(h?.status)?1:0)}})}toggleAccordion(){this.isAccordion=!this.isAccordion}toggleArrestsSidebar(){this.store.dispatch(Pt.g.toggleSidebar({name:null}))}setNoYesStatus(e){switch(e.status){case r.Q_.NO:this.risksStore.updateCurrentPage(r.jy.NO);break;case r.Q_.OFF:this.risksStore.updateCurrentPage(r.jy.OFF);break;case r.Q_.NOT_RESIDENT:this.risksStore.updateCurrentPage(r.jy.NOT_RESIDENT);break;case r.Q_.REJECTED:this.risksStore.updateCurrentPage(r.jy.REJECTED);break;default:this.risksStore.updateCurrentPage(e.error?r.jy.ERROR:r.jy.SYNC)}}getArrestsDetails(e,s,i){this.risksStore.setItem(s),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.store.dispatch(Yt.a.loadDetails({type_id:e})),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.ARRESTS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}saveDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.YES):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(e)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(f.J),t.Y36(t.ktI),t.Y36(m.yh),t.Y36(Bt.FW))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-arrests"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{identifier:"identifier",isIp:"isIp",isAuth:"isAuth",isCardBought:"isCardBought"},standalone:!0,features:[t.jDz],decls:19,vars:20,consts:[[1,"accordion","accordion--risks",3,"ngClass"],[1,"accordion__header",3,"click"],[1,"accordion__toggle","icon"],[1,"accordion__title"],["class","accordion__status",4,"ngIf"],[1,"accordion__body"],[1,"accordion__section"],[4,"ngIf"],[1,"accordion__status"],["class","flex-center",4,"ngIf"],["class","text",3,"text--green","text--red",4,"ngIf"],[1,"text"],[1,"flex-center"],[1,"loader","loader--20"],[3,"identifier","isAccess","name","item","url","sidebarName","sourceLabelKey","changeDetailsPage"],[3,"identifier","isAccess","name","item","url","buttonText","sidebarName","sourceLabelKey","changeDetailsPage"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleAccordion()}),t.TgZ(2,"div",2),t._UZ(3,"icon-chevron-down"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.YNc(7,wt,5,6,"div",4),t.qZA()(),t.TgZ(8,"div",5)(9,"div",6),t.YNc(10,Ht,7,9,"ng-container",7),t.YNc(11,qt,3,10,"ng-container",7),t.ALo(12,"async"),t.YNc(13,Kt,3,10,"ng-container",7),t.ALo(14,"async"),t.YNc(15,Gt,3,10,"ng-container",7),t.ALo(16,"async"),t.YNc(17,Xt,3,10,"ng-container",7),t.ALo(18,"async"),t.qZA()()()),2&s&&(t.Q6J("ngClass",t.VKq(18,zt,i.isAccordion)),t.xp6(5),t.hij(" ",t.lcZ(6,8,"offers-promo.group2.block5_title")," "),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought),t.xp6(3),t.Q6J("ngIf",!i.isIp),t.xp6(1),t.Q6J("ngIf",t.lcZ(12,10,i.status4$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(14,12,i.status5$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(16,14,i.status6$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(18,16,i.status7$)))},dependencies:[_.mk,k.b,E.R,A.X$,_.O5,b.P,_.Ov],encapsulation:2})}}return n})();var Wt=l(71178),P=l(72965);function te(n,o){if(1&n&&(t.TgZ(0,"span",11),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.ekj("text--green",e.allCount<=0)("text--red",e.allCount>0),t.xp6(1),t.hij("",e.allCount,"/")}}function ee(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,te,2,5,"span",10),t.TgZ(2,"span",11),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought),t.xp6(2),t.Oqu(e.isIp?e.riskFactorsCount.ip.zakupki:e.riskFactorsCount.ul.zakupki)}}function se(n,o){if(1&n&&(t.TgZ(0,"div",12),t._UZ(1,"div",13),t.TgZ(2,"div",11),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(3),t.hij("\xa0/",e.isIp?e.riskFactorsCount.ip.zakupki:e.riskFactorsCount.ul.zakupki,"")}}function ie(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,ee,4,2,"div",7),t.ALo(2,"async"),t.YNc(3,se,4,1,"div",9),t.ALo(4,"async"),t.qZA()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!t.lcZ(2,2,e.selectZakupkiLoaders$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(4,4,e.selectZakupkiLoaders$))}}function ne(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(1,a,"zakupki.procurement_participation"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","zakupki.procurement_participation")("item",e)("sidebarName",s.SIDEBAR.ZAKUPKI_FR)}}function re(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(2,a,"zakupki.unscrupulous_samruk_kazyna"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","zakupki.unscrupulous_samruk_kazyna")("item",e)("sidebarName",s.SIDEBAR.ZAKUPKI_FR)}}function ae(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(4,a,"zakupki.unscrupulous_mitwork_vendor"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","zakupki.unscrupulous_mitwork_vendor")("item",e)("sidebarName",s.SIDEBAR.ZAKUPKI_FR)}}function oe(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(5,a,"zakupki.unscrupulous_nbkr_participant"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","zakupki.unscrupulous_nbkr_participant")("item",e)("sidebarName",s.SIDEBAR.ZAKUPKI_FR)}}const ce=function(n){return{"accordion--active":n}};let le=(()=>{class n{constructor(e,s,i){this.destroy=e,this.store=s,this.risksStore=i,this.class="accordion",this.status=r.Q_,this.countedStatuses=[r.Q_.YES,r.Q_.EXCLUDED],this.isAccordion=!0,this.risk1$=this.store.select((0,P.m_)(1)),this.risk2$=this.store.select((0,P.m_)(2)),this.risk4$=this.store.select((0,P.m_)(4)),this.risk5$=this.store.select((0,P.m_)(5)),this.selectZakupkiLoaders$=this.store.select(P.RE),this.allCount=0,this.riskFactorsCount=N.yl,this.STATUS=r.Q_,this.SIDEBAR=r.jy}ngOnInit(){(0,I.a)([this.risk1$,this.risk2$,this.risk4$,this.risk5$]).pipe((0,g.sL)(this.destroy)).subscribe({next:([e,s,i,a])=>{this.allCount=(this.countedStatuses.includes(e?.status)?1:0)+(this.countedStatuses.includes(s?.status)?1:0)+(this.countedStatuses.includes(i?.status)?1:0)+(this.countedStatuses.includes(a?.status)?1:0)}})}toggleAccordion(){this.isAccordion=!this.isAccordion}setNoYesStatus(e){switch(e.status){case r.Q_.NO:this.risksStore.updateCurrentPage(r.jy.NO);break;case r.Q_.OFF:this.risksStore.updateCurrentPage(r.jy.OFF);break;case r.Q_.NOT_RESIDENT:this.risksStore.updateCurrentPage(r.jy.NOT_RESIDENT);break;case r.Q_.REJECTED:this.risksStore.updateCurrentPage(r.jy.REJECTED);break;default:this.risksStore.updateCurrentPage(e.error?r.jy.ERROR:r.jy.SYNC)}}getDetails(e,s,i){this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.store.dispatch(Wt.R.loadDetails({typeId:e})),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.ZAKUPKI_FR):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(t.ktI),t.Y36(m.yh),t.Y36(f.J))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-zakupki"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{identifier:"identifier",isAuth:"isAuth",isCardBought:"isCardBought",isIp:"isIp"},standalone:!0,features:[t.jDz],decls:18,vars:19,consts:[[1,"accordion","accordion--risks","accordion--active",3,"ngClass"],[1,"accordion__header",3,"click"],[1,"accordion__toggle","icon"],[1,"accordion__title"],["class","accordion__status",4,"ngIf"],[1,"accordion__body"],[1,"accordion__section"],[4,"ngIf"],[1,"accordion__status"],["class","flex-center",4,"ngIf"],["class","text",3,"text--green","text--red",4,"ngIf"],[1,"text"],[1,"flex-center"],[1,"loader","loader--20"],[3,"identifier","isAccess","name","item","sidebarName","changeDetailsPage"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleAccordion()}),t.TgZ(2,"div",2),t._UZ(3,"icon-chevron-down"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.YNc(7,ie,5,6,"div",4),t.qZA()(),t.TgZ(8,"div",5)(9,"div",6),t.YNc(10,ne,2,5,"ng-container",7),t.ALo(11,"async"),t.YNc(12,re,2,5,"ng-container",7),t.ALo(13,"async"),t.YNc(14,ae,2,5,"ng-container",7),t.ALo(15,"async"),t.YNc(16,oe,2,5,"ng-container",7),t.ALo(17,"async"),t.qZA()()()),2&s&&(t.Q6J("ngClass",t.VKq(17,ce,i.isAccordion)),t.xp6(5),t.hij(" ",t.lcZ(6,7,"zakupki.title")," "),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought),t.xp6(3),t.Q6J("ngIf",t.lcZ(11,9,i.risk1$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(13,11,i.risk2$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(1
15,13,i.risk4$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(17,15,i.risk5$)))},dependencies:[_.mk,k.b,E.R,A.X$,b.P,_.Ov,_.O5],encapsulation:2})}}return n})();var it=l(37105),Z=l(81151),y=l(32872);function _e(n,o){if(1&n&&(t.TgZ(0,"span",11),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.ekj("text--green",e.allCount<=0)("text--red",e.allCount>0),t.xp6(1),t.hij("",e.allCount,"/")}}function ue(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,_e,2,5,"span",10),t.TgZ(2,"span",11),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought),t.xp6(2),t.Oqu(e.isIp?e.riskFactorsCount.ip.bankruptcy:e.riskFactorsCount.ul.bankruptcy)}}function de(n,o){if(1&n&&(t.TgZ(0,"div",12),t._UZ(1,"div",13),t.TgZ(2,"div",11),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(3),t.hij("\xa0/",e.isIp?e.riskFactorsCount.ip.bankruptcy:e.riskFactorsCount.ul.bankruptcy,"")}}function ge(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,ue,4,2,"div",7),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.YNc(5,de,4,1,"div",9),t.ALo(6,"async"),t.ALo(7,"async"),t.ALo(8,"async"),t.qZA()),2&n){const e=t.oxw();let s,i;t.xp6(1),t.Q6J("ngIf",!t.lcZ(2,2,e.selectBankruptcyLoadings$)&&!(null!=(s=t.lcZ(3,4,e.activity_rik_3_bankruptcy_reestr$))&&s.loading||(null==(s=t.lcZ(4,6,e.activity_rik_3_bankruptcy_reestr$))?null:s.status)===e.STATUS.SYNC)),t.xp6(4),t.Q6J("ngIf",t.lcZ(6,8,e.selectBankruptcyLoadings$)||(null==(i=t.lcZ(7,10,e.activity_rik_3_bankruptcy_reestr$))?null:i.loading)||(null==(i=t.lcZ(8,12,e.activity_rik_3_bankruptcy_reestr$))?null:i.status)===e.STATUS.SYNC)}}function pe(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(1,a,"bankruptcy.title_1"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","bankruptcy.title_1")("item",e)("sidebarName",s.SIDEBAR.BANKRUPTCY)("url","https://portal.kgd.gov.kz")}}function he(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(2,a,"bankruptcy.title_2"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","bankruptcy.title_2")("item",e)("sidebarName",s.SIDEBAR.BANKRUPTCY)("url","https://kgd.gov.kz")}}function me(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(3,a,"bankruptcy.title_3"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","bankruptcy.title_3")("item",e)("sidebarName",s.SIDEBAR.BANKRUPTCY)("url","https://kgd.gov.kz")}}function fe(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(4,a,"bankruptcy.title_4"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","bankruptcy.title_4")("item",e)("sidebarName",s.SIDEBAR.BANKRUPTCY)("url","https://kgd.gov.kz")}}function Se(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(5,a,"bankruptcy.title_5"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","bankruptcy.title_5")("item",e)("sidebarName",s.SIDEBAR.BANKRUPTCY)("url","https://kgd.gov.kz")}}function Ce(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(6,a,"bankruptcy.title_6"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","bankruptcy.title_6")("item",e)("sidebarName",s.SIDEBAR.BANKRUPTCY)("url","https://kgd.gov.kz")}}function Ae(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetailsReestr(a,"bankruptcy.title_7"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();
1t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","bankruptcy.title_7")("item",e)("sidebarName",s.SIDEBAR.BANKRUPTCY)("url","https://kgd.gov.kz")}}const ye=function(n){return{"accordion--active":n}};let xe=(()=>{class n{constructor(e,s,i){this.destroy=e,this.store=s,this.risksStore=i,this.class="accordion",this.countedStatuses=[r.Q_.YES,r.Q_.EXCLUDED],this.status=r.Q_,this.isAccordion=!0,this.activity_rik_3_bankruptcy_reestr$=this.store.select((0,y.Mw)(3)),this.risk1$=this.store.select((0,Z.fn)(1)),this.risk2$=this.store.select((0,Z.fn)(2)),this.risk3$=this.store.select((0,Z.fn)(3)),this.risk4$=this.store.select((0,Z.fn)(4)),this.risk5$=this.store.select((0,Z.fn)(5)),this.risk6$=this.store.select((0,Z.fn)(6)),this.selectBankruptcyLoadings$=this.store.select(Z.AL),this.allCount=0,this.riskFactorsCount=N.yl,this.STATUS=r.Q_,this.SIDEBAR=r.jy}ngOnInit(){(0,I.a)([this.risk1$,this.risk2$,this.risk3$,this.risk4$,this.risk5$,this.risk6$,this.activity_rik_3_bankruptcy_reestr$]).pipe((0,g.sL)(this.destroy)).subscribe({next:([e,s,i,a,c,u,d])=>{this.allCount=(this.countedStatuses.includes(e?.status)?1:0)+(this.countedStatuses.includes(s?.status)?1:0)+(this.countedStatuses.includes(i?.status)?1:0)+(this.countedStatuses.includes(a?.status)?1:0)+(this.countedStatuses.includes(c?.status)?1:0)+(this.countedStatuses.includes(u?.status)?1:0)+(this.countedStatuses.includes(d?.status)?1:0)}})}toggleAccordion(){this.isAccordion=!this.isAccordion}setNoYesStatus(e){switch(e.status){case r.Q_.NO:this.risksStore.updateCurrentPage(r.jy.NO);break;case r.Q_.OFF:this.risksStore.updateCurrentPage(r.jy.OFF);break;case r.Q_.NOT_RESIDENT:this.risksStore.updateCurrentPage(r.jy.NOT_RESIDENT);break;case r.Q_.REJECTED:this.risksStore.updateCurrentPage(r.jy.REJECTED);break;default:this.risksStore.updateCurrentPage(e.error?r.jy.ERROR:r.jy.SYNC)}}getDetails(e,s,i){this.risksStore.setItem(null),this.risksStore.setPageName(i),this.store.dispatch(it.u.setTypeId({typeId:e})),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.store.dispatch(it.u.loadContent({typeId:e})),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.BANKRUPTCY):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}getDetailsReestr(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.store.dispatch(it.u.loadReestrContent()),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.BANKRUPTCY):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(t.ktI),t.Y36(m.yh),t.Y36(f.J))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-bankruptcy"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{identifier:"identifier",isAuth:"isAuth",isCardBought:"isCardBought",isIp:"isIp"},standalone:!0,features:[t.jDz],decls:24,vars:28,consts:[[1,"accordion","accordion--risks",3,"ngClass"],[1,"accordion__header",3,"click"],[1,"accordion__toggle","icon"],[1,"accordion__title"],["class","accordion__status",4,"ngIf"],[1,"accordion__body"],[1,"accordion__section"],[4,"ngIf"],[1,"accordion__status"],["class","flex-center",4,"ngIf"],["class","text",3,"text--green","text--red",4,"ngIf"],[1,"text"],[1,"flex-center"],[1,"loader","loader--20"],[3,"identifier","isAccess","name","item","sidebarName","url","changeDetailsPage"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleAccordion()}),t.TgZ(2,"div",2),t._UZ(3,"icon-chevron-down"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.YNc(7,ge,9,14,"div",4),t.qZA()(),t.TgZ(8,"div",5)(9,"div",6),t.YNc(10,pe,2,6,"ng-container",7),t.ALo(11,"async"),t.YNc(12,he,2,6,"ng-container",7),t.ALo(13,"async"),t.YNc(14,me,2,6,"ng-container",7),t.ALo(15,"async"),t.YNc(16,fe,2,6,"ng-container",7),t.ALo(17,"async"),t.YNc(18,Se,2,6,"ng-container",7),t.ALo(19,"async"),t.YNc(20,Ce,2,6,"ng-container",7),t.ALo(21,"async"),t.YNc(22,Ae,2,6,"ng-container",7),t.ALo(23,"async"),t.qZA()()()),2&s&&(t.Q6J("ngClass",t.VKq(26,ye,i.isAccordion)),t.xp6(5),t.hij(" ",t.lcZ(6,10,"bankruptcy.title")," "),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought),t.xp6(3),t.Q6J("ngIf",t.lcZ(11,12,i.risk1$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(13,14,i.risk2$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(1
15,16,i.risk3$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(17,18,i.risk4$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(19,20,i.risk5$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(21,22,i.risk6$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(23,24,i.activity_rik_3_bankruptcy_reestr$)))},dependencies:[_.mk,k.b,E.R,A.X$,_.O5,b.P,_.Ov],encapsulation:2})}}return n})();var M=l(41445),ke=l(32698),_t=l(31201),Te=l(6431);function Ne(n,o){if(1&n&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.qZA(),t.TgZ(3,"div",10),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.ekj("text--green",e.allCount+e.otherRisksCount<=0)("text--red",e.allCount+e.otherRisksCount>0),t.xp6(1),t.hij("",e.allCount+e.otherRisksCount,"/"),t.xp6(2),t.Oqu(e.riskAllCount)}}function De(n,o){if(1&n&&(t.TgZ(0,"div",11),t._UZ(1,"div",12),t.TgZ(2,"div",10),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(3),t.hij("\xa0/",e.riskAllCount,"")}}function Ee(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Ne,5,6,"div",7),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.YNc(7,De,4,1,"div",9),t.ALo(8,"async"),t.ALo(9,"async"),t.ALo(10,"async"),t.ALo(11,"async"),t.ALo(12,"async"),t.qZA()),2&n){const e=t.oxw();let s,i;t.xp6(1),t.Q6J("ngIf",e.isCardBought&&!t.lcZ(2,2,e.adminLoading$)&&!(null!=(s=t.lcZ(3,4,e.aisoip$))&&s.loading||(null==(s=t.lcZ(4,6,e.aisoip$))?null:s.status)===e.STATUS.SYNC)&&!(null!=(s=t.lcZ(5,8,e.zapret$))&&s.loading||(null==(s=t.lcZ(6,10,e.zapret$))?null:s.status)===e.STATUS.SYNC)&&!(null!=(s=e.companyStatusTaxDebt())&&s.loading||(null==(s=e.companyStatusTaxDebt())?null:s.status)===e.STATUS.SYNC)&&!(null!=(s=e.debtOnCustomsStatusSignal())&&s.loading||(null==(s=e.debtOnCustomsStatusSignal())?null:s.status)===e.STATUS.SYNC)&&!(null!=(s=e.statusTaxPayer())&&s.loading||(null==(s=e.statusTaxPayer())?null:s.status)===e.STATUS.SYNC)),t.xp6(6),t.Q6J("ngIf",t.lcZ(8,12,e.adminLoading$)||(null==(i=t.lcZ(9,14,e.aisoip$))?null:i.loading)||(null==(i=t.lcZ(10,16,e.aisoip$))?null:i.status)===e.STATUS.SYNC||(null==(i=t.lcZ(11,18,e.zapret$))?null:i.loading)||(null==(i=t.lcZ(12,20,e.zapret$))?null:i.status)===e.STATUS.SYNC||(null==(i=e.companyStatusTaxDebt())?null:i.loading)||(null==(i=e.companyStatusTaxDebt())?null:i.status)===e.STATUS.SYNC||(null==(i=e.afmPyramidStatusSignal())?null:i.loading)||(null==(i=e.debtOnCustomsStatusSignal())?null:i.loading)||(null==(i=e.debtOnCustomsStatusSignal())?null:i.status)===e.STATUS.SYNC||(null==(i=e.statusTaxPayer())?null:i.loading)||(null==(i=e.statusTaxPayer())?null:i.status)===e.STATUS.SYNC)}}function ve(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(1,a,"activity.reorganized_as_fake"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.reorganized_as_fake")("item",e)("sidebarName",s.SIDEBAR.ACTIVITY)}}function be(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(2,a,"activity.absent_at_legal_address"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.absent_at_legal_address")("item",e)("sidebarName",s.SIDEBAR.ACTIVITY)}}function Ze(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(4,a,"activity.recognized_as_inactive"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.recognized_as_inactive")("item",e)("sidebarName",s.SIDEBAR.ACTIVITY)}}function Ie(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(5,a,"activity.registration_invalid"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.registration_invalid")("item",e)("sidebarName",s.SIDEBAR.ACTIVITY)}}function Fe(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",14),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getDetails(6,a,"activity.tax_debt",c.isIp?"activity.tax_debt_amount_ip":"activity.tax_debt_amount_non_ip"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();
1t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.tax_debt")("secondName",s.isIp?"activity.tax_debt_amount_ip":"activity.tax_debt_amount_non_ip")("item",e)("sidebarName",s.SIDEBAR.ACTIVITY)("url","https://portal.kgd.gov.kz")}}function Qe(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("downloadDocument",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.loadDoc())})("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getTaxDebtDetails(a,"activity.tax_debt_title"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.tax_debt_title")("item",e)("isTax",!0)("sidebarName",s.SIDEBAR.TAX_DEBT_SECTION)("taxLoadingPdf",s.taxLoadingPdf)("downloadButtonText","tile_component.download_certificate")("loadingPdf",!!s.taxLoadingPdf)}}function Le(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getEsfDetails(a,"activity.esf_restriction"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.esf_restriction")("item",e)("sidebarName",s.SIDEBAR.ACTIVITY)}}function Re(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getAisoipDetails(a,"activity.executive_proceedings",c.ManagerTypes.COMPANY))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.executive_proceedings")("item",e)("sidebarName",s.SIDEBAR.AISOIP)}}function Ye(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getZapretDetails(a,"activity.travel_ban"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.travel_ban")("item",e)("sidebarName",s.SIDEBAR.ZAPRET)}}function Pe(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){t.CHM(e);const i=t.oxw().ngIf,a=t.oxw();return t.KtG(a.getAdminFinesDetails(i,"activity.admin_offenses"))}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.admin_offenses")("item",e)("sidebarName",s.SIDEBAR.ADMIN_FINES)}}function Be(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Pe,2,5,"ng-container",7),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!e.isIp)}}function Oe(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.getTaxPayerDetails(a,"activity.taxpayer_transactions"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.taxpayer_transactions")("item",e)("sidebarName",s.SIDEBAR.TAX_PAYER_DETAILS)}}function Ue(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",16),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.debtOnCustomsDetails(a,"activity.customs_debt"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.customs_debt")("item",e)("sidebarName",s.SIDEBAR.DEBT_ON_CUSTOMS_DETAILS)("isTax",!1)}}function Je(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",13),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.afmPyramidDetails(a,"activity.afm_pyramid_projects"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.afm_pyramid_projects")("item",e)("sidebarName",s.SIDEBAR.AFM_PYRAMID)}}const we=function(n){return{"accordion--active":n}},R=function(){return{}};let $e=(()=>{class n{get otherRisksCount(){return this.companyStatusNum()+(this.countedStatuses.includes(this.statusTaxPayer()?.status)?1:0)+(this.countedStatuses.includes(this.debtOnCustomsStatusSignal()?.status)?1:0)+(this.countedStatuses.includes(this.afmPyramidStatusSignal()?.status)?1:0)}get riskAllCount(){return this.isIp?this.riskFactorsCount.ip.activity:this.riskFactorsCount.ul.activity}constructor(e,s,i,a,c,u,d,h,S){this.risksStore=e,this.store=s,this.taxDebtStore=i,this.taxPayerStore=a,this.foundersOthersStore=c,this.debtOnCustomsStore=u,this.afmPyramidStore=d,this.taxDebtService=h,this.toastr=S,this.class="accordion",this.countedStatuses=[r.Q_.YES,r.Q_.EXCLUDED],this.status=r.Q_,this.isAccordion=!0,this.destroy=(0,t.f3M)(t.ktI),this.debtOnCustomsStatusSignal=this.debtOnCustomsStore.status,this.afmPyramidStatusSignal=this.afmPyramidStore.status,this.companyStatusTaxDebt=this.taxDebtStore.companyStatus,this.companyStatusNum=this.taxDebtStore.companyStatusNum,this.sidebar=r.jy,this.sidebar$=this.store.select(C.qT),this.risk_1$=this.store.select((0,y.Mw)(1)),this.risk_2$=this.store.select((0,y.Mw)(2)),this.risk_4$=this.store.select((0,y.Mw)(4)),this.risk_5$=this.store.select((0,y.Mw)(5)),this.risk_6$=this.store.select((0,y.Mw)(6)),this.esf$=this.store.select(y.kM),this.admin$=this.store.select(y.Rk),this.adminLoading$=this.store.select(y.ut),this.activity_risk_count$=this.store.select(y.Op),this.allCount=0,this.aisoip$=this.store.select(G.Ox),this.zapret$=this.store.select(X.PV),this.statusTaxPayer=this.taxPayerStore.status,this.riskFactorsCount=N.yl,this.STATUS=r.Q_,this.ManagerTypes=Q.E,this.SIDEBAR=r.jy}ngOnInit(){(0,I.a)([this.activity_risk_count$,this.zapret$,this.aisoip$]).pipe((0,g.sL)(this.destroy)).subscribe({next:([e,s,i])=>{this.allCount=e+(this.countedStatuses.includes(s?.status)?1:0)+(this.countedStatuses.includes(i?.status)?1:0)}})}toggleAccordion(){this.isAccordion=!this.isAccordion}setNoYesStatus(e){switch(e?.status){case r.Q_.NO:this.risksStore.updateCurrentPage(r.jy.NO);break;case r.Q_.OFF:this.risksStore.updateCurrentPage(r.jy.OFF);break;case r.Q_.NOT_RESIDENT:this.risksStore.updateCurrentPage(r.jy.NOT_RESIDENT);break;case r.Q_.REJECTED:this.risksStore.updateCurrentPage(r.jy.REJECTED);break;default:this.risksStore.updateCurrentPage(e.error?r.jy.ERROR:r.jy.SYNC)}}getDetails(e,s,i,a){this.risksStore.setItem(null),this.risksStore.setPageName(i),this.risksStore.setPageSecondName(a||""),this.store.dispatch(M.M.setTypeId({typeId:e})),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.store.dispatch(M.M.loadDetails({typeId:e})),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.ACTIVITY):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}getTaxDebtDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s);const i=(0,$.g)(e?.status,e?.cacheStatus);this.identifier&&([r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)||i)?(this.taxDebtStore.getDetailsEffect({type:W.x.COMPANY}),i||[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.TAX_DEBT_SECTION):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}getEsfDetails(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.store.dispatch(M.M.loadEsfDetails()),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.ACTIVITY):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}getAisoipDetails(e,s,i){this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.store.dispatch(z.j.loadDetails({currentTypeDetails:i}
1)),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.AISOIP):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}getZapretDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.store.dispatch(V.q.loadDetails({update:!1,currentTypeDetails:Q.E.COMPANY})),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.ZAPRET):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}getAdminFinesDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s);const i=(0,$.g)(e?.status,e?.cacheStatus);[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.PAID].includes(e.status)||i?(this.store.dispatch(M.M.loadAdminFINESList({page:1})),i||[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.PAID].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.ADMIN_FINES):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}getTaxPayerDetails(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.taxPayerStore.loadDetails(this.identifier),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.TAX_PAYER_DETAILS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}debtOnCustomsDetails(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.debtOnCustomsStore.loadDetailsEffect(),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.DEBT_ON_CUSTOMS_DETAILS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}afmPyramidDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.Q_.NO].includes(e.status)?(this.afmPyramidStore.loadDetailsEffect(),[r.Q_.YES,r.Q_.NO,r.Q_.EXCLUDED,r.Q_.PAID].includes(e.status)&&this.risksStore.updateCurrentPage(r.jy.AFM_PYRAMID)):this.setNoYesStatus(e)}loadDoc(){this.taxLoadingPdf||(this.taxLoadingPdf=!0,this.identifier&&(this.isIp?this.taxDebtService.getOwnerDoc(this.identifier):this.taxDebtService.getCompanyDoc(this.identifier)).pipe((0,H.q)(1),(0,J.b)(s=>{window.open(URL.createObjectURL(s),"_target")}),(0,tt.K)(s=>(this.toastr.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0438!"),(0,q.of)(null))),(0,K.x)(()=>{this.taxLoadingPdf=!1})).subscribe())}foundersIsUnclicked(e){e.stopPropagation(),this.foundersOthersStore.setIsFounderTileOpened(!1)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(f.J),t.Y36(m.yh),t.Y36(L.NX),t.Y36(ke.JL),t.Y36(_t.Q),t.Y36(j.v),t.Y36(Te.c),t.Y36(L.N_),t.Y36(et._W))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-risk-activity"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{isAuth:"isAuth",isCardBought:"isCardBought",isIp:"isIp",identifier:"identifier"},standalone:!0,features:[t.jDz],decls:32,vars:44,consts:[[1,"accordion","accordion--risks",3,"ngClass"],[1,"accordion__header",3,"click"],[1,"accordion__toggle","icon"],[1,"accordion__title"],["class","accordion__status",4,"ngIf"],[1,"accordion__body"],[1,"accordion__section",3,"click"],[4,"ngIf"],[1,"accordion__status"],["class","flex-center",4,"ngIf"],[1,"text"],[1,"flex-center"],[1,"loader","loader--20"],[3,"identifier","isAccess","name","item","sidebarName","changeDetailsPage"],[3,"identifier","isAccess","name","secondName","item","sidebarName","url","changeDetailsPage"],[3,"identifier","isAccess","name","item","isTax","sidebarName","taxLoadingPdf","downloadButtonText","loadingPdf","downloadDocument","changeDetailsPage"],["data-id","debt-on-customs",3,"identifier","isAccess","name","item","sidebarName","isTax","changeDetailsPage"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleAccordion()}),t.TgZ(2,"div",2),t._UZ(3,"icon-chevron-down"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.YNc(7,Ee,13,22,"div",4),t.qZA()(),t.TgZ(8,"div",5)(9,"div",6),t.NdJ("click",function(c){return i.foundersIsUnclicked(c)}),t.YNc(10,ve,2,5,"ng-container",7),t.ALo(11,"async"),t.YNc(12,be,2,5,"ng-container",7),t.ALo(13,"async"),t.YNc(14,Ze,2,5,"ng-container",7),t.ALo(15,"async"),t.YNc(16,Ie,2,5,"ng-container",7),t.ALo(17,"async"),t.YNc(18,Fe,2,7,"ng-container",7),t.ALo(19,"async"),t.YNc(20,Qe,2,9,"ng-container",7),t.YNc(21,Le,2,5,"ng-container",7),t.ALo(22,"async"),t.YNc(23,Re,2,5,"ng-container",7),t.ALo(24,"async"),t.YNc(25,Ye,2,5,"ng-container",7),t.ALo(26,"async"),t.YNc(27,Be,2,1,"ng-container",7),t.ALo(28,"async"),t.YNc(29,Oe,2,5,"ng-container",7),t.YNc(30,Ue,2,6,"ng-container",7),t.YNc(31,Je,2,5,"ng-container",7),t.qZA()()()),2&s&&(t.Q6J("ngClass",t.VKq(36,we,i.isAccordion)),t.xp6(5),t.hij(" ",t.lcZ(6,16,"activity.title")," "),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought),t.xp6(3),t.Q6J("ngIf",t.lcZ(11,18,i.risk_1$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(13,20,i.risk_2$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(1
15,22,i.risk_4$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(17,24,i.risk_5$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(19,26,i.risk_6$)),t.xp6(2),t.Q6J("ngIf",i.companyStatusTaxDebt()||t.DdM(38,R)),t.xp6(1),t.Q6J("ngIf",t.lcZ(22,28,i.esf$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(24,30,i.aisoip$)||t.DdM(39,R)),t.xp6(2),t.Q6J("ngIf",t.lcZ(26,32,i.zapret$)||t.DdM(40,R)),t.xp6(2),t.Q6J("ngIf",t.lcZ(28,34,i.admin$)),t.xp6(2),t.Q6J("ngIf",i.statusTaxPayer()||t.DdM(41,R)),t.xp6(1),t.Q6J("ngIf",i.debtOnCustomsStatusSignal()||t.DdM(42,R)),t.xp6(1),t.Q6J("ngIf",!i.isIp&&(i.afmPyramidStatusSignal()||t.DdM(43,R))))},dependencies:[_.mk,k.b,E.R,A.X$,_.O5,b.P,_.Ov],encapsulation:2})}}return n})();var je=l(78645),Me=l(59773),Y=l(52719),B=l(32808);const He={[B.B.status_type_4]:"arrests.title_4",[B.B.status_type_5]:"arrests.title_5",[B.B.status_type_6]:"arrests.title_6",[B.B.status_type_7]:"arrests.title_7",[B.B.status_type_8]:"arrests.title_8"};var qe=l(62941),Ke=l(70690),Ge=l(37686),Xe=l(74109),ze=l(8612),Ve=l(56188),ut=l(45277),We=l(77790),ts=l(90474),es=l(39723),ss=l(60826),is=l(27138),ns=l(47472),rs=l(46326),as=l(10595),os=l(26);function cs(n,o){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.ekj("text--green",e.allCount+e.otherRisksCount<=0)("text--red",e.allCount+e.otherRisksCount>0),t.xp6(1),t.hij("",e.allCount+e.otherRisksCount,"/")}}function ls(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,cs,2,5,"span",13),t.TgZ(2,"span",14),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought),t.xp6(2),t.Oqu(e.riskFactorsCount.ul.founders)}}function _s(n,o){if(1&n&&(t.TgZ(0,"div",15),t._UZ(1,"div",16),t.TgZ(2,"div",14),t._uU(3),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(3),t.hij("\xa0/",e.riskFactorsCount.ul.founders,"")}}function us(n,o){if(1&n&&(t.TgZ(0,"div",10),t.YNc(1,ls,4,2,"div",11),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.YNc(7,_s,4,1,"div",12),t.ALo(8,"async"),t.ALo(9,"async"),t.ALo(10,"async"),t.ALo(11,"async"),t.ALo(12,"async"),t.qZA()),2&n){const e=t.oxw();let s,i;t.xp6(1),t.Q6J("ngIf",!(t.lcZ(2,2,e.selectFoundersLoaders$)||e.foundersLoadersSignal()||null!=(s=t.lcZ(3,4,e.aisoip$))&&s.loading||(null==(s=t.lcZ(4,6,e.aisoip$))?null:s.status)===e.STATUS.SYNC||null!=(s=t.lcZ(5,8,e.zapret$))&&s.loading||(null==(s=t.lcZ(6,10,e.zapret$))?null:s.status)===e.STATUS.SYNC)),t.xp6(6),t.Q6J("ngIf",t.lcZ(8,12,e.selectFoundersLoaders$)||(null==(i=t.lcZ(9,14,e.aisoip$))?null:i.loading)||(null==(i=t.lcZ(10,16,e.aisoip$))?null:i.status)===e.STATUS.SYNC||(null==(i=t.lcZ(11,18,e.zapret$))?null:i.loading)||(null==(i=t.lcZ(12,20,e.zapret$))?null:i.status)===e.STATUS.SYNC||e.foundersLoadersSignal())}}function ds(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",21)(1,"a",22),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.isAuth?i.toggleBuyCardModal(!0):i.openLoginModal())}),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(2),t.hij(" ",e.isAuth?t.lcZ(3,1,"card.managers.buy"):t.lcZ(4,3,"card.managers.login")," ")}}function gs(n,o){if(1&n&&(t.TgZ(0,"div",17)(1,"div",18)(2,"div",19),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ds,5,5,"div",20),t.qZA()()),2&n){const e=t.oxw();
1t.xp6(3),t.Oqu(t.lcZ(4,2,"card.info_is_hidden")),t.xp6(2),t.Q6J("ngIf",!e.initLoadingSignal())}}function ps(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSidebar(c.foundersUnreliableTypes.isFalseEnterprise,a,"activity.reorganized_as_fake"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.reorganized_as_fake")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function hs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSidebar(c.foundersUnreliableTypes.isMissingByLegalAddress,a,"activity.absent_at_legal_address"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.absent_at_legal_address")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function ms(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSidebar(c.foundersUnreliableTypes.isDeclaredInactive,a,"activity.recognized_as_inactive"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.recognized_as_inactive")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function fs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSidebar(c.foundersUnreliableTypes.isRegistrationDeclaredInvalid,a,"activity.registration_invalid"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.registration_invalid")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function Ss(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",25),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSidebar(c.foundersUnreliableTypes.hasTaxDebtOver150MCI,a,"activity.tax_debt","activity.tax_debt_amount_non_ip"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.tax_debt")("secondName","activity.tax_debt_amount_non_ip")("item",e)("managersStatus",t.lcZ(2,10,s.managers_status$))("managersHasError",t.lcZ(3,12,s.managers_error$))("managersLoading",t.lcZ(4,14,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function Cs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersOthersSidebar(c.foundersOthersTypes.esfCompanyLimits,a,"activity.esf_restriction"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.esf_restriction")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function As(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ps,5,15,"ng-container",11),t.YNc(2,hs,5,15,"ng-container",11),t.YNc(3,ms,5,15,"ng-container",11),t.YNc(4,fs,5,15,"ng-container",11),t.YNc(5,Ss,5,16,"ng-container",11),t.YNc(6,Cs,5,15,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isFalseEnterpriseShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isMissingByLegalAddressShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isDeclaredInactiveShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isRegistrationDeclaredInvalidShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.hasTaxDebtOver150MCIShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.esfCompanyLimitsShort():null)}}function ys(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.getDetails(1,a,"risk_factors.debtors_docs"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","risk_factors.debtors_docs")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_FR)}}function xs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",26),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openTerrorismSidebar(c.terrorType.terrorism_financial,a,"risk_factors.terror_financing"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","risk_factors.terror_financing")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.TERRORISM_UL_LIST)}}function ks(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.getDetails(2,a,"risk_factors.criminal_investigation"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","risk_factors.criminal_investigation")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_FR)}}function Ts(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.getDetails(3,a,"risk_factors.missing_person"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","risk_factors.missing_person")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_FR)}}function Ns(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.getDetails(4,a,"risk_factors.alimony_debtors"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","risk_factors.alimony_debtors")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_FR)}}function Ds(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.getDetails(5,a,"risk_factors.gis"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","risk_factors.gis")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_FR)}}function Es(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ys,5,15,"ng-container",11),t.ALo(2,"async"),t.YNc(3,xs,5,15,"ng-container",11),t.YNc(4,ks,5,15,"ng-container",11),t.ALo(5,"async"),t.YNc(6,Ts,5,15,"ng-container",11),t.ALo(7,"async"),t.YNc(8,
1Ns,5,15,"ng-container",11),t.ALo(9,"async"),t.YNc(10,Ds,5,15,"ng-container",11),t.ALo(11,"async"),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,6,e.risk1$)),t.xp6(2),t.Q6J("ngIf",e.isAuth&&e.isCardBought?e.terrorismFinancialStatus():null),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,8,e.risk2$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(7,10,e.risk3$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,12,e.risk4$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(11,14,e.risk5$))}}function vs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.getAisoipDetails(a,"founders_aisoip_details.title"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","founders_aisoip_details.title")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.AISOIP_FOUNDERS_FR)}}function bs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.getZapretDetails(a,"activity.travel_ban"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.travel_ban")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.ZAPRET_FOUNDERS_FR)}}function Zs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersOthersSidebar(c.foundersOthersTypes.adminFines,a,"activity.admin_offenses"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","activity.admin_offenses")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function Is(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersTaxpayersSidebar(c.foundersTaxpayersTypes.taxpayersWithFictitiousTransactions,a,"card.taxes.taxpayer_transactions"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","card.taxes.taxpayer_transactions")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function Fs(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Zs,5,15,"ng-container",11),t.YNc(2,Is,5,15,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.adminFinesShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.taxpayersWithFictitiousTransactionsShort():null)}}function Qs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",27),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.getTaxDebtFoundersDetails(a,"activity.tax_debt_title"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("isTax",!0)("item",e)("name","activity.tax_debt_title")("managersStatus",t.lcZ(2,10,s.managers_status$))("managersHasError",t.lcZ(3,12,s.managers_error$))("managersLoading",t.lcZ(4,14,s.managers_loading$))("sidebarName",s.SIDEBAR.TAX_DEBT_FR)}}function Ls(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.getFoundersDebtors(a,"bankruptcy.bankruptcy_proceedings"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.bankruptcy_proceedings")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_LIST)}}function Rs(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ls,5,15,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isAuth&&e.isCardBought?e.foundersDebtorStatusSignal():null)}}function Ys(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",28),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.debtOnCustomsFounders(a,"activity.customs_debt"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("name","activity.customs_debt")("item",e)("managersStatus",t.lcZ(2,11,s.managers_status$))("managersHasError",t.lcZ(3,13,s.managers_error$))("managersLoading",t.lcZ(4,15,s.managers_loading$))("sidebarName",s.SIDEBAR.DEBT_ON_CUSTOMS_FOUNDERS)("isTax",!1)("isDebtOnCustoms",!0)("isFounders",!0)}}function Ps(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersArrestsSbSidebar(c.foundersArrestsSbTypes.registrationActionsProhibited,a,"arrests.title_1"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","arrests.title_1")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Bs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersArrestsSbSidebar(c.foundersArrestsSbTypes.founderShareEncumbrance,a,"arrests.title_2"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","arrests.title_2")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Os(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersArrestsSbSidebar(c.foundersArrestsSbTypes.legalEntityFounderShareEncumbrance,a,"arrests.title_3"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","arrests.title_3")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Us(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ps,5,15,"ng-container",11),t.YNc(2,Bs,5,15,"ng-container",11),t.YNc(3,Os,5,15,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.registrationActionsProhibitedShort()),t.xp6(1),t.Q6J("ngIf",e.foun
1derShareEncumbranceShort()),t.xp6(1),t.Q6J("ngIf",e.legalEntityFounderShareEncumbranceShort())}}function Js(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.openArrestsAisoipSidebar(4,a,"arrests.title_4"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","arrests.title_4")("item",e)("sidebarName",s.SIDEBAR.ARRESTS_AISOIP_FOUDERS)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function ws(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.openArrestsAisoipSidebar(5,a,"arrests.title_5"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","arrests.title_5")("item",e)("sidebarName",s.SIDEBAR.ARRESTS_AISOIP_FOUDERS)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function $s(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.openArrestsAisoipSidebar(6,a,"arrests.title_6"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","arrests.title_6")("item",e)("sidebarName",s.SIDEBAR.ARRESTS_AISOIP_FOUDERS)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function js(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(2);return t.KtG(c.openArrestsAisoipSidebar(7,a,"arrests.title_7"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(2);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","arrests.title_7")("item",e)("sidebarName",s.SIDEBAR.ARRESTS_AISOIP_FOUDERS)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Ms(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersBankruptcySidebar(c.foundersBankruptcyTypes.caseRehabilitationNotice,a,"bankruptcy.title_1"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.title_1")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Hs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersBankruptcySidebar(c.foundersBankruptcyTypes.rehabProcedureNotice,a,"bankruptcy.title_2"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.title_2")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function qs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersBankruptcySidebar(c.foundersBankruptcyTypes.creditorsMeetingRehabNotice,a,"bankruptcy.title_3"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.title_3")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Ks(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersBankruptcySidebar(c.foundersBankruptcyTypes.bankruptcyCaseNotice,a,"bankruptcy.title_4"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.title_4")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Gs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersBankruptcySidebar(c.foundersBankruptcyTypes.bankruptcyLiquidationNotice,a,"bankruptcy.title_5"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.title_5")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Xs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersBankruptcySidebar(c.foundersBankruptcyTypes.creditorsMeetingBankruptcyNotice,a,"bankruptcy.title_6"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.title_6")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function zs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSidebar(c.foundersUnreliableTypes.isInBankruptRegister,a,"bankruptcy.title_7"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","bankruptcy.title_7")("item",e)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)}}function Vs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSupplierSidebar(c.foundersUnreliableSupplierTypes.isUnscrupulousProcurementParticipant,a,"zakupki.procurement_participation"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","zakupki.procurement_participation")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function Ws(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSupplierSidebar(c.foundersUnreliableSupplierTypes.isUnscrupulousSamrukKazynaSupplier,a,"zakupki.unscrupulous_samruk_kazyna"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","zakupki.unscrupulous_samruk_kazyna")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function ti(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSupplierSidebar(c.foundersUnreliableSupplierTypes.isUnscrupulousMitworkEtpSupplier,a,"zakupki.unscrupulous_mitwork_vendor"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","zakupki.unscrupulous_mitwork_vendor")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function ei(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",29),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw(3);return t.KtG(c.openFoundersUnreliableSupplierSidebar(c.foundersUnreliableSupplierTypes.isUnscrupulousNbkrParticipant,a,"zakupki.unscrupulous_nbkr_participant"))}),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isCardBought)("isFounders",!0)("name","zakupki.unscrupulous_nbkr_participant")("item",e)("sidebarName",s.SIDEBAR.FOUNDERS_STATUS_CONTAINER)("managersStatus",t.lcZ(2,9,s.managers_status$))("managersHasError",t.lcZ(3,11,s.managers_error$))("managersLoading",t.lcZ(4,13,s.managers_loading$))}}function si(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ms,5,15,"ng-container",11),t.YNc(2,Hs,5,15,"ng-container",11),t.YNc(3,qs,5,15,"ng-container",11),t.YNc(4,Ks,5,15,"ng-container",11),t.YNc(5,Gs,5,15,"ng-container",11),t.YNc(6,Xs,5,15,"ng-container",11),t.YNc(7,zs,5,15,"ng-container",11),t.YNc(8,Vs,5,15,"ng-container",11),t.YNc(9,Ws,5,15,"ng-container",11),t.YNc(10,ti,5,15,"ng-container",11),t.YNc(11,ei,5,15,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.caseRehabilitationNoticeShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.rehabProcedureNoticeShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.creditorsMeetingRehabNoticeShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.bankruptcyCaseNoticeShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.bankruptcyLiquidationNoticeShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.creditorsMeetingBankruptcyNoticeShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isInBankruptRegisterShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isUnscrupulousProcurementParticipantShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isUnscrupulousSamrukKazynaSupplierShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isUnscrupulousMitworkEtpSupplierShort():null),t.xp6(1),t.Q6J("ngIf",e.isCardBought?e.isUnscrupulousNbkrParticipantShort():null)}}function ii(n,o){if(1&n){const e=t.EpF();
1t.TgZ(0,"div",23),t.NdJ("click",function(i){t.CHM(e);const a=t.oxw();return t.KtG(a.foundersIsClicked(i))}),t.YNc(1,As,7,6,"ng-container",11),t.YNc(2,Es,12,16,"ng-container",11),t.YNc(3,vs,5,15,"ng-container",11),t.ALo(4,"async"),t.YNc(5,bs,5,15,"ng-container",11),t.ALo(6,"async"),t.YNc(7,Fs,3,2,"ng-container",11),t.YNc(8,Qs,5,16,"ng-container",11),t.YNc(9,Rs,2,1,"ng-container",11),t.YNc(10,Ys,5,17,"ng-container",11),t.YNc(11,Us,4,3,"ng-container",11),t.YNc(12,Js,5,15,"ng-container",11),t.YNc(13,ws,5,15,"ng-container",11),t.YNc(14,$s,5,15,"ng-container",11),t.YNc(15,js,5,15,"ng-container",11),t.YNc(16,si,12,11,"ng-container",11),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.areFoundersFl()),t.xp6(1),t.Q6J("ngIf",!e.areFoundersUl()),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,14,e.aisoip$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(6,16,e.zapret$)),t.xp6(2),t.Q6J("ngIf",!e.areFoundersFl()),t.xp6(1),t.Q6J("ngIf",e.isAuth&&e.isCardBought?e.founderTaxDebtStatus():null),t.xp6(1),t.Q6J("ngIf",!e.areFoundersUl()),t.xp6(1),t.Q6J("ngIf",e.isAuth&&e.isCardBought?e.debtOnCustomsStatusSignal():null),t.xp6(1),t.Q6J("ngIf",!e.areFoundersFl()),t.xp6(1),t.Q6J("ngIf",e.arrestsType_4()),t.xp6(1),t.Q6J("ngIf",e.arrestsType_5()),t.xp6(1),t.Q6J("ngIf",e.arrestsType_6()),t.xp6(1),t.Q6J("ngIf",e.arrestsType_7()),t.xp6(1),t.Q6J("ngIf",!e.areFoundersFl())}}function ni(n,o){1&n&&(t.TgZ(0,"div",30)(1,"div",31)(2,"div",32),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"card.founders_list.info_hidden")," "))}function ri(n,o){1&n&&(t.TgZ(0,"div",30)(1,"div",31)(2,"div",32),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"card.okeds.liquidated")," "))}function ai(n,o){1&n&&(t.TgZ(0,"div",30)(1,"div",31)(2,"div",32),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"card.okeds.reorganized")," "))}function oi(n,o){1&n&&(t.TgZ(0,"div",30)(1,"div",31)(2,"div",32),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"card.managers.not_found_founders")," "))}function ci(n,o){1&n&&(t.TgZ(0,"div",30)(1,"div",31)(2,"div",32),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"card.founders_list.bin_iin_not_found")," "))}function li(n,o){1&n&&(t.TgZ(0,"div",30)(1,"div",31)(2,"div",32),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"card.founders_list.service_is_unavailable")," "))}function _i(n,o){1&n&&(t.TgZ(0,"div",30)(1,"div",31)(2,"div",32),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"card.founders_list.source_is_unavailable")," "))}function ui(n,o){1&n&&(t.TgZ(0,"div",33)(1,"div",34),t._UZ(2,"div",35),t.qZA()())}const di=function(n){return{"accordion--active":n}};let gi=(()=>{class n{get otherRisksCount(){return(this.countedStatuses.includes(this.foundersDebtorStatusSignal()?.status)?1:0)+(this.countedStatuses.includes(this.terrorismFinancialStatus()?.status)?1:0)+(this.countedStatuses.includes(this.debtOnCustomsStatusSignal()?.status)?1:0)+(this.hasDebtorDataSignal()?1:0)+this.founderStatusNum()+this.founderShortCount()+this.foundersBankruptcyCount()+this.foundersUnreliableCount()+this.foundersUnreliableSupplierCount()+this.foundersOthersCount()+this.taxpayersWithFictitiousTransactionsCount()+this.foundersArrestsSbCount()+this.foundersAisoipCount()}constructor(e,s,i,a,c,u,d,h,S,x,O,nt,rt,hn,mn,fn,Sn){this.appStore=e,this.risksStore=s,this.destroy=i,this.rootStore=a,this.taxDebtStore=c,this.debtorsStore=u,this.terrorismUlStore=d,this.debtOnCustomsStore=h,this.arrestsFlStore=S,this.foundersBankruptcyStore=x,this.foundersUnreliableStore=O,this.foundersUnreliableSupplierStore=nt,this.foundersOthersStore=rt,this.buyCardStore=hn,this.foundersTaxpayersStore=mn,this.foundersArrestsSbStore=fn,this.foundersAisoipStore=Sn,this.class="accordion",this.countedStatuses=[r.Q_.YES],this.isAccordion=!0,this.managers_error$=this.rootStore.select(T.uh),this.managers_loading$=this.rootStore.select(T.M6),this.managers_status$=this.rootStore.select(T.zJ),this.risk1$=this.rootStore.select((0,Y.nQ)(1)),this.risk2$=this.rootStore.select((0,Y.nQ)(2)),this.risk3$=this.rootStore.select((0,Y.nQ)(3)),this.risk4$=this.rootStore.select((0,Y.nQ)(4)),this.risk5$=this.rootStore.select((0,Y.nQ)(5)),this.selectFoundersLoaders$=this.rootStore.select(Y.Hq),this.aisoip$=this.rootStore.select(G.Ke),this.zapret$=this.rootStore.select(X.TA),this.founderTaxDebtStatus=this.taxDebtStore.foundersStatusShort,this.founderStatusNum=this.taxDebtStore.founderStatusNum,this.allCount=0,this.terrorType=w.FG,this.initLoadingSignal=this.appStore.initLoading,this.debtOnCustomsStatusSignal=this.debtOnCustomsStore.statusFounder,this.terrorismFinancial
1Status=this.terrorismUlStore.statusFounderTerrorismFinancial,this.hasDebtorDataSignal=this.debtorsStore.hasData,this.foundersDebtorStatusSignal=this.debtorsStore.foundersStatus,this.statusTypes=r.Q_,this.foundersLoadersSignal=(0,t.Flj)(()=>this.isFalseEnterpriseShort()?.loading||this.isFalseEnterpriseShort()?.status===r.Q_.SYNC||this.isMissingByLegalAddressShort()?.loading||this.isMissingByLegalAddressShort()?.status===r.Q_.SYNC||this.isDeclaredInactiveShort()?.loading||this.isDeclaredInactiveShort()?.status===r.Q_.SYNC||this.isRegistrationDeclaredInvalidShort()?.loading||this.isRegistrationDeclaredInvalidShort()?.status===r.Q_.SYNC||this.hasTaxDebtOver150MCIShort()?.loading||this.hasTaxDebtOver150MCIShort()?.status===r.Q_.SYNC||this.esfCompanyLimitsShort()?.loading||this.esfCompanyLimitsShort()?.status===r.Q_.SYNC||this.adminFinesShort()?.loading||this.adminFinesShort()?.status===r.Q_.SYNC||this.taxpayersWithFictitiousTransactionsShort()?.loading||this.taxpayersWithFictitiousTransactionsShort()?.status===r.Q_.SYNC||this.founderTaxDebtStatus()?.loading||this.founderTaxDebtStatus()?.status===r.Q_.SYNC||this.foundersDebtorStatusSignal()?.loading||this.foundersDebtorStatusSignal()?.status===r.Q_.SYNC||this.debtOnCustomsStatusSignal()?.loading||this.debtOnCustomsStatusSignal()?.status===r.Q_.SYNC||this.registrationActionsProhibitedShort()?.loading||this.registrationActionsProhibitedShort()?.status===r.Q_.SYNC||this.founderShareEncumbranceShort()?.loading||this.founderShareEncumbranceShort()?.status===r.Q_.SYNC||this.legalEntityFounderShareEncumbranceShort()?.loading||this.legalEntityFounderShareEncumbranceShort()?.status===r.Q_.SYNC||this.caseRehabilitationNoticeShort()?.loading||this.caseRehabilitationNoticeShort()?.status===r.Q_.SYNC||this.rehabProcedureNoticeShort()?.loading||this.rehabProcedureNoticeShort()?.status===r.Q_.SYNC||this.creditorsMeetingRehabNoticeShort()?.loading||this.creditorsMeetingRehabNoticeShort()?.status===r.Q_.SYNC||this.bankruptcyCaseNoticeShort()?.loading||this.bankruptcyCaseNoticeShort()?.status===r.Q_.SYNC||this.bankruptcyLiquidationNoticeShort()?.loading||this.bankruptcyLiquidationNoticeShort()?.status===r.Q_.SYNC||this.creditorsMeetingBankruptcyNoticeShort()?.loading||this.creditorsMeetingBankruptcyNoticeShort()?.status===r.Q_.SYNC||this.isInBankruptRegisterShort()?.loading||this.isInBankruptRegisterShort()?.status===r.Q_.SYNC||this.isUnscrupulousProcurementParticipantShort()?.loading||this.isUnscrupulousProcurementParticipantShort()?.status===r.Q_.SYNC||this.isUnscrupulousSamrukKazynaSupplierShort()?.loading||this.isUnscrupulousSamrukKazynaSupplierShort()?.status===r.Q_.SYNC||this.isUnscrupulousMitworkEtpSupplierShort()?.loading||this.isUnscrupulousMitworkEtpSupplierShort()?.status===r.Q_.SYNC||this.isUnscrupulousNbkrParticipantShort()?.loading||this.isUnscrupulousNbkrParticipantShort()?.status===r.Q_.SYNC||this.terrorismFinancialStatus()?.loading||this.terrorismFinancialStatus()?.status===r.Q_.SYNC||this.arrestsType_4()?.loading||this.arrestsType_4()?.status===r.Q_.SYNC||this.arrestsType_5()?.loading||this.arrestsType_5()?.status===r.Q_.SYNC||this.arrestsType_6()?.loading||this.arrestsType_6()?.status===r.Q_.SYNC||this.arrestsType_7()?.loading||this.arrestsType_7()?.status===r.Q_.SYNC),this.ARRESTS_TITLES=He,this.foundersBankruptcyTypes=qe.l,this.arrestsType_4=this.arrestsFlStore.foundersArrestsType4,this.arrestsType_5=this.arrestsFlStore.foundersArrestsType5,this.arrestsType_6=this.arrestsFlStore.foundersArrestsType6,this.arrestsType_7=this.arrestsFlStore.foundersArrestsType7,this.founderShortCount=this.arrestsFlStore.founderShortCount,this.managementStatuses=this.foundersBankruptcyStore.managementStatuses,this.foundersBankruptcyCount=this.foundersBankruptcyStore.yesStatusesCount,this.areFoundersFl=this.foundersBankruptcyStore.areFoundersFl,this.areFoundersUl=this.foundersBankruptcyStore.areFoundersUl,this.caseRehabilitationNoticeShort=this.foundersBankruptcyStore.caseRehabilitationNoticeShort,this.rehabProcedureNoticeShort=this.foundersBankruptcyStore.rehabProcedureNoticeShort,this.creditorsMeetingRehabNoticeShort=this.foundersBankruptcyStore.creditorsMeetingRehabNoticeShort,this.bankruptcyCaseNoticeShort=this.foundersBankruptcyStore.bankruptcyCaseNoticeShort,this.bankruptcyLiquidationNoticeShort=this.foundersBankruptcyStore.bankruptcyLiquidationNoticeShort,this.creditorsMeetingBankruptcyNoticeShort=this.foundersBankruptcyStore.creditorsMeetingBankruptcyNoticeShort,this.foundersUnreliableTypes=Ke.q,this.foundersUnreliableCount=this.foundersUnreliableStore.yesStatusesCount,this.isFalseEnterpriseShort=this.foundersUnreliableStore.isFalseEnterpriseShort,this.isMissingByLegalAddressShort=this.foundersUnreliableStore.isMissingByLegalAddressShort,this.isInBankruptRegisterShort=this.foundersUnreliableStore.isInBankruptRegisterShort,this.isDeclaredInactiveShort=this.foundersUnreliableStore.isDeclaredInactiveShort,this.isRegistrationDeclaredInvalidShort=this.foundersUnreliableStore.isRegistrationDeclaredInvalidShort,this.hasTaxDebtOver150MCIShort=this.foundersUnreliableStore.hasTaxDebtOver150MCIShort,this.foundersUnreliableSupplierTypes=Ge.d,this.foundersUnreliableSupplierCount=this.foundersUnreliableSupplierStore.yesStatusesCount,this.isUnscrupulousProcurementParticipantShort=this.foundersUnreliableSupplierStore.isUnscrupulousProcurementParticipantShort,this.isUnscrupulousSamrukKazynaSupplierShort=this.foundersUnreliableSupplierStore.isUnscrupulousSamrukKazynaSupplierShort,this.isUnscrupulousMitworkEtpSupplierShort=this.foundersUnreliableSupplierStore.isUnscrupulousMitworkEtpSupplierShort,this.isUnscrupulousNbkrParticipantShort=this.foundersUnreliableSupplierStore.isUnscrupulousNbkrParticipantShort,this.foundersOthersT
1ypes=Xe.x,this.foundersOthersCount=this.foundersOthersStore.yesStatusesCount,this.esfCompanyLimitsShort=this.foundersOthersStore.esfCompanyLimitsShort,this.adminFinesShort=this.foundersOthersStore.adminFinesShort,this.foundersTaxpayersTypes=ze.B,this.taxpayersWithFictitiousTransactionsCount=this.foundersTaxpayersStore.yesStatusesCount,this.taxpayersWithFictitiousTransactionsShort=this.foundersTaxpayersStore.taxpayersWithFictitiousTransactionsShort,this.foundersArrestsSbTypes=Ve.A,this.foundersArrestsSbCount=this.foundersArrestsSbStore.yesStatusesCount,this.registrationActionsProhibitedShort=this.foundersArrestsSbStore.registrationActionsProhibitedShort,this.founderShareEncumbranceShort=this.foundersArrestsSbStore.founderShareEncumbranceShort,this.legalEntityFounderShareEncumbranceShort=this.foundersArrestsSbStore.legalEntityFounderShareEncumbranceShort,this.foundersAisoipCount=this.foundersAisoipStore.yesStatusesCount,this.unsubscribe$=new je.x,this.ZAKUPKI_SOURCES=We.g,this.STATUS=r.Q_,this.SIDEBAR=r.jy,this.riskFactorsCount={...N.yl}}ngOnInit(){(0,I.a)([this.risk1$,this.risk2$,this.risk3$,this.risk4$,this.risk5$,this.aisoip$,this.zapret$]).pipe((0,g.sL)(this.destroy),(0,ot.U)(([e,s,i,a,c,u,d])=>{this.allCount=(this.countedStatuses.includes(e?.status)?1:0)+(this.countedStatuses.includes(s?.status)?1:0)+(this.countedStatuses.includes(i?.status)?1:0)+(this.countedStatuses.includes(a?.status)?1:0)+(this.countedStatuses.includes(c?.status)?1:0)+(this.countedStatuses.includes(u?.status)?1:0)+(this.countedStatuses.includes(d?.status)?1:0)})).subscribe(),this.rootStore.select(T.ov).pipe((0,Me.R)(this.unsubscribe$),(0,J.b)(e=>{this.updateRiskFactorsCount(e),this.unsubscribe$.complete()})).subscribe()}toggleAccordion(){this.isAccordion=!this.isAccordion}getTaxDebtFoundersDetails(e,s){this.clearSidebars(),this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?(this.identifier&&this.taxDebtStore.getFounderStatusEffect({identifier:this.identifier,update:null}),[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.TAX_DEBT_FR):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}setNoYesStatus(e){switch(e.status){case r.Q_.OFF:this.risksStore.updateCurrentPage(r.jy.OFF);break;case r.Q_.NOT_RESIDENT:this.risksStore.updateCurrentPage(r.jy.NOT_RESIDENT);break;case r.Q_.REJECTED:this.risksStore.updateCurrentPage(r.jy.REJECTED);break;default:this.risksStore.updateCurrentPage(e.error?r.jy.ERROR:r.jy.SYNC)}}getDetails(e,s,i){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),this.rootStore.dispatch(ut.t.setTypeId({typeId:e})),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.rootStore.dispatch(ut.t.loadList({typeId:e})),[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.FOUNDERS_FR):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}getAisoipDetails(e,s){this.clearSidebars(),this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?(this.rootStore.dispatch(z.j.loadFounderList({currentTypeDetails:Q.E.FOUNDER})),[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.AISOIP_FOUNDERS_FR):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}openTerrorismSidebar(e,s,i){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.terrorismUlStore.loadTerrorismStatusFounderListEffect(e),this.risksStore.updateCurrentPage(r.jy.TERRORISM_UL_LIST)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}getZapretDetails(e,s){this.clearSidebars(),this.risksStore.setItem(e),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?(this.rootStore.dispatch(V.q.loadFounderList({currentTypeDetails:Q.E.FOUNDER})),this.risksStore.updateCurrentPage(r.jy.ZAPRET_FOUNDERS_FR)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(e)}getFoundersDebtors(e,s){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?(this.debtorsStore.getDebtorsFounders(),this.risksStore.updateCurrentPage(r.jy.FOUNDERS_LIST)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(e)}debtOnCustomsFounders(e,s){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(e.status)?(this.debtOnCustomsStore.loadStatusFounderEffect(this.identifier),this.risksStore.updateCurrentPage(r.jy.DEBT_ON_CUSTOMS_FOUNDERS)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(e)}openArrestsAisoipSidebar(e,s,i){this.clearSidebars(),this.risksStore.setItem(s),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.arrestsFlStore.loadArrestsAisoipFounders(e),this.risksStore.updateCurrentPage(r.jy.ARRESTS_AISOIP_FOUDERS)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}openFoundersUnreliableSidebar(e,s,i,a){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),this.risksStore.setPageSecondName(a||""),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.risksStore.updateCurrentPage(r.jy.OTHER),setTimeout(()=>{this.foundersUnreliableStore.loadStatusEffect({identifier:this.identifier,typeId:e}),this.foundersUnreliableStore.setStatusSidebar(e),this.risksStore.updateCurrentPage(r.jy.FOUNDERS_STATUS_CONTAINER)},100)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}openFoundersOthersSidebar(e,s,i){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.PAID,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.PAID,r.Q_.NO].includes(s.status)?(this.risksStore.updateCurrentPage(r.jy.OTHER),setTimeout(()=>{this.foundersOthersStore.loadStatusEffect({identifier:this.identifier,typeId:e}),this.foundersOthersStore.setStatusSidebar(e),this.risksStore.updateCurrentPage(r.jy.FOUNDERS_STATUS_CONTAINER)},100)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}openFoundersTaxpayersSidebar(e,s,i){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.risksStore.updateCurrentPage(r.jy.OTHER),setTimeout(()=>{this.foundersTaxpayersStore.loadStatusEffect({identifier:this.identifier,typeId:e}),this.foundersTaxpayersStore.setStatusSidebar(e),this.risksStore.updateCurrentPage(r.jy.FOUNDERS_STATUS_CONTAINER)},100)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}openFoundersArrestsSbSidebar(e,s,i){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),this.risksStore.setItem(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.risksStore.updateCurrentPage(r.jy.OTHER),setTimeout(()=>{this.foundersArrestsSbStore.loadStatusEffect({identifier:this.identifier,typeId:e}),this.foundersArrestsSbStore.setStatusSidebar(e),this.risksStore.updateCurrentPage(r.jy.FOUNDERS_STATUS_CONTAINER)},100)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}openFoundersBankruptcySidebar(e,s,i){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.risksStore.updateCurrentPage(r.jy.OTHER),setTimeout(()=>{this.foundersBankruptcyStore.loadStatusEffect({identifier:this.identifier,typeId:e}),this.foundersBankruptcyStore.setStatusSidebar(e),this.risksStore.updateCurrentPage(r.jy.FOUNDERS_STATUS_CONTAINER)},100)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}openFoundersUnreliableSupplierSidebar(e,s,i){this.clearSidebars(),this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?[r.Q_.YES,r.Q_.EXCLUDED,r.Q_.NO].includes(s.status)?(this.risksStore.updateCurrentPage(r.jy.OTHER),setTimeout(()=>{this.foundersUnreliableSupplierStore.loadStatusEffect({identifier:this.identifier,typeId:e}),this.foundersUnreliableSupplierStore.setStatusSidebar(e),this.risksStore.updateCurrentPage(r.jy.FOUNDERS_STATUS_CONTAINER)},100)):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(s)}updateRiskFactorsCount(e){this.isAuth&&this.isCardBought&&e?.status===this.statusTypes.YES&&(e?.foun
1ders_ul_risk_factor===r.Q_.YES||e?.founders_fl_risk_factor===r.Q_.YES)?(e?.founders_ul_risk_factor===r.Q_.YES&&e?.founders_fl_risk_factor===r.Q_.YES&&(this.riskFactorsCount.ul.all=83,this.riskFactorsCount.ul.founders=37),e?.founders_ul_risk_factor===r.Q_.YES&&e?.founders_fl_risk_factor!==r.Q_.YES&&(this.riskFactorsCount.ul.all=76,this.riskFactorsCount.ul.founders=30),e?.founders_ul_risk_factor!==r.Q_.YES&&e?.founders_fl_risk_factor===r.Q_.YES&&(this.riskFactorsCount.ul.all=61,this.riskFactorsCount.ul.founders=15)):this.riskFactorsCount.ul.all=46}clearSidebars(){this.risksStore.setPageName(""),this.foundersOthersStore.setStatusSidebar(null),this.foundersArrestsSbStore.setStatusSidebar(null),this.foundersTaxpayersStore.setStatusSidebar(null),this.foundersBankruptcyStore.setStatusSidebar(null),this.foundersUnreliableSupplierStore.setStatusSidebar(null),this.foundersUnreliableStore.setStatusSidebar(null),this.foundersAisoipStore.setStatusSidebar(null)}openLoginModal(){setTimeout(()=>this.appStore.keycloakLoginEffect())}toggleBuyCardModal(e){this.buyCardStore.setModalVal(e)}foundersIsClicked(e){e.stopPropagation(),this.foundersOthersStore.setIsFounderTileOpened(!0)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(ts.d),t.Y36(f.J),t.Y36(t.ktI),t.Y36(m.yh),t.Y36(L.NX),t.Y36(st.xf),t.Y36(w.oj),t.Y36(j.v),t.Y36(lt.NP),t.Y36(es.i),t.Y36(ss.B),t.Y36(is.U),t.Y36(_t.Q),t.Y36(ns.O),t.Y36(rs.N),t.Y36(as.M),t.Y36(os.h))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-founders"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{isCardBought:"isCardBought",isAuth:"isAuth",managementBlock:"managementBlock",identifier:"identifier"},standalone:!0,features:[t.jDz],decls:31,vars:41,consts:[[1,"accordion","accordion--risks",3,"ngClass"],[1,"accordion__header",3,"click"],[1,"accordion__toggle","icon"],[1,"accordion__title"],["class","accordion__status",4,"ngIf"],[1,"accordion__body"],["class","details__layout",4,"ngIf"],["class","accordion__section",3,"click",4,"ngIf"],["class","sidebar__system-message",4,"ngIf"],["class","details__container",4,"ngIf"],[1,"accordion__status"],[4,"ngIf"],["class","flex-center",4,"ngIf"],["class","text",3,"text--green","text--red",4,"ngIf"],[1,"text"],[1,"flex-center"],[1,"loader","loader--20"],[1,"details__layout"],[1,"alert","alert--tile","alert--expand"],[1,"alert__caption"],["class","alert__value",4,"ngIf"],[1,"alert__value"],[1,"link","link--line",3,"click"],[1,"accordion__section",3,"click"],[3,"identifier","isAccess","isFounders","name","item","managersStatus","managersHasError","managersLoading","sidebarName","changeDetailsPage"],[3,"identifier","isAccess","isFounders","name","secondName","item","managersStatus","managersHasError","managersLoading","sidebarName","changeDetailsPage"],["data-id","financing-of-terrorism",3,"identifier","isAccess","isFounders","name","item","managersStatus","managersHasError","managersLoading","sidebarName","changeDetailsPage"],[3,"identifier","isAccess","isFounders","isTax","item","name","managersStatus","managersHasError","managersLoading","sidebarName","changeDetailsPage"],["data-id","debt-on-customs",3,"identifier","isAccess","name","item","managersStatus","managersHasError","managersLoading","sidebarName","isTax","isDebtOnCustoms","isFounders","changeDetailsPage"],[3,"identifier","isAccess","isFounders","name","item","sidebarName","managersStatus","managersHasError","managersLoading","changeDetailsPage"],[1,"sidebar__system-message"],[1,"system-message","system-message--148"],[1,"text","text--t1","text--center","text--gray"],[1,"details__container"],[1,"details__loader"],[1,"loader","loader--24"]],template:function(s,i){if(1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleAccordion()}),t.TgZ(2,"div",2),t._UZ(3,"icon-chevron-down"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.YNc(7,us,13,22,"div",4),t.ALo(8,"async"),t.ALo(9,"async"),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"div",5),t.YNc(12,gs,6,4,"div",6),t.YNc(13,ii,17,18,"div",7),t.ALo(14,"async"),t.ALo(15,"async"),t.ALo(16,"async"),t.YNc(17,ni,5,3,"div",8),t.ALo(18,"async"),t.YNc(19,ri,5,3,"div",8),t.ALo(20,"async"),t.YNc(21,ai,5,3,"div",8),t.ALo(22,"async"),t.YNc(23,oi,5,3,"div",8),t.YNc(24,ci,5,3,"div",8),t.YNc(25,li,5,3,"div",8),t.ALo(26,"async"),t.YNc(27,_i,5,3,"div",8),t.ALo(28,"async"),t.YNc(29,ui,3,0,"div",9),t.ALo(30,"async"),t.qZA()()),2&s){let a,c,u,d,h,S,x;t.Q6J("ngClass",t.VKq(39,di,i.isAccordion)),t.xp6(5),t.hij(" ",t.lcZ(6,13,"card.managers.founders")," "),t.xp6(2),t.Q6J("ngIf",i.isAuth&&i.isCardBought&&t.lcZ(8,15,i.managers_status$)===i.statusTypes.YES&&!t.lcZ(9,17,i.managers_error$)&&!t.lcZ(10,19,i.managers_loading$)&&((null==(a=i.managementStatuses())?null:a.founders_ul_risk_factor)===i.statusTypes.YES||(null==(a=i.managementStatuses())?null:a.founders_fl_risk_factor)===i.statusTypes.YES)),t.xp6(5),t.Q6J("ngIf",!i.isAuth||!i.isCardBought),t.xp6(1),t.Q6J("ngIf",i.isAuth&&i.isCardBought&&t.lcZ(14,21,i.managers_status$)!==i.statusTypes.OFF&&!t.lcZ(15,23,i.managers_error$)&&!t.lcZ(16,25,i.managers_loading$)&&((null==(c=i.managementStatuses())?null:c.founders_ul_risk_factor)===i.statusTypes.YES||(null==(c=i.managementStatuses())?null:c.founders_fl_risk_factor)===i.statusTypes.YES)),t.xp6(4),t.Q6J("ngIf",(null==(u=i.managementStatuses())?null:u.founders_ul_risk_factor)===i.statusTypes.HIDDEN&&(null==(u=i.managementStatuses())?null:u.founders_fl_risk_factor)===i.statusTypes.HIDDEN||t.lcZ(18,27,i.managers_status$)===i.statusTypes.HIDDEN),t.xp6(2),t.Q6J("ngIf",(null==(d=i.managementStatuses())?null:d.founders_ul_risk_factor)===i.statusTypes.LIQUIDATED&&(null==(d=i.managementStatuses())?null:d.founders_fl_risk_factor)===i.statusTypes.LIQUIDATED||t.lcZ(20,29,i.managers_status$)===i.statusTypes.LIQUIDATED),t.xp6(2),t.Q6J("ngIf",(null==(h=i.managementStatuses())?null:h.founders_ul_risk_factor)===i.statusTypes.REORGANIZED&&(null==(h=i.managementStatuses())?null:h.founders_fl_risk_factor)===i.statusTypes.REORGANIZED||t.lcZ(22,31,i.managers_status$)===i.statusTypes.REORGANIZED),t.xp6(2),t.Q6J("ngIf",(null==(S=i.managementStatuses())?null:S.founders_ul_risk_factor)===i.statusTypes.NO&&(null==(S=i.managementStatuses())?null:S.founders_fl_risk_factor)===i.statusTypes.NO),t.xp6(1),t.Q6J("ngIf",(null==(x=i.managementStatuses())?null:x.founders_ul_risk_factor)===i.statusTypes.NOT_FOUND&&(null==(x=i.managementStatuses())?null:x.founders_fl_risk_factor)===i.statusTypes.NOT_FOUND),t.xp6(1),t.Q6J("ngIf",t.lcZ(26,33,i.managers_error$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(28,35,i.managers_status$)===i.statusTypes.OFF),t.xp6(2),t.Q6J("ngIf",t.lcZ(30,37,i.managers_loading$))}},dependencies:[_.mk,A.X$,k.b,E.R,_.O5,_.Ov,b.P],encapsulation:2})}}return n})();function pi(n,o){if(1&n&&(t._UZ(0,"app-founders",4),t.ALo(1,"async")),2&n){const e=t.oxw();t.Q6J("isCardBought",e.boughtCard)("isAuth",e.Boolean(t.lcZ(1,4,e.isAuth$)))("identifier",e.identifier)("managementBlock",e.managementBlock)}}let hi=(()=>{class n{constructor(e,s,i){this.destroy=e,this.store=s,this.risksStore=i,this.class="group group--vertical group--12",this.identifier="",this.isAuth$=this.store.select(U.Mb),this.withRiskSignal=this.risksStore.withRisks,this.isIp=!1,this.boughtCard=!1,this.Boolean=Boolean,this.store.select(C.Io).pipe((0,g.sL)(this.destroy)).subscribe(a=>{this.isIp=a}),this.store.select(C.lW).pipe((0,g.sL)(this.destroy)).subscribe(a=>{this.boughtCard="BOUGHT"===a?.status})}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(t.ktI),t.Y36(m.yh),t.Y36(f.J))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-risks-widgets-group"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{managementBlock:"managementBlock",identifier:"identifier"},standalone:!0,features:[t.jDz],decls:11,vars:32,consts:[[3,"identifier","isCardBought","isAuth","isIp"],[3,"identifier","isIp","isCardBought","isAuth"],[3,"isIp","isCardBought","isAuth","identifier","managementBlock"],[3,"isCardBought","isAuth","identifier","managementBlock",4,"ngIf"],[3,"isCardBought","isAuth","identifier","managementBlock"]],template:function(s,i){1&s&&(t._UZ(0,"app-risk-activity",0),t.ALo(1,"async"),t._UZ(2,"app-arrests",1),t.ALo(3,"async"),t._UZ(4,"app-bankruptcy",1),t.ALo(5,"async"),t._UZ(6,"app-zakupki",1),t.ALo(7,"async"),t._UZ(8,"a
1pp-owner",2),t.ALo(9,"async"),t.YNc(10,pi,2,6,"app-founders",3)),2&s&&(t.Q6J("identifier",i.identifier)("isCardBought",i.boughtCard)("isAuth",i.Boolean(t.lcZ(1,22,i.isAuth$)))("isIp",i.isIp),t.xp6(2),t.Q6J("identifier",i.identifier)("isIp",i.isIp)("isCardBought",i.boughtCard)("isAuth",i.Boolean(t.lcZ(3,24,i.isAuth$))),t.xp6(2),t.Q6J("identifier",i.identifier)("isIp",i.isIp)("isCardBought",i.boughtCard)("isAuth",i.Boolean(t.lcZ(5,26,i.isAuth$))),t.xp6(2),t.Q6J("identifier",i.identifier)("isIp",i.isIp)("isCardBought",i.boughtCard)("isAuth",i.Boolean(t.lcZ(7,28,i.isAuth$))),t.xp6(2),t.Q6J("isIp",i.isIp)("isCardBought",i.boughtCard)("isAuth",i.Boolean(t.lcZ(9,30,i.isAuth$)))("identifier",i.identifier)("managementBlock",i.managementBlock),t.xp6(2),t.Q6J("ngIf",!i.isIp))},dependencies:[_.O5,k.b,Rt,Vt,le,_.Ov,xe,$e,gi],encapsulation:2})}}return n})();var v=l(88251),mi=l(66247),fi=l(71996);function Si(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",e.allNegativeCountSumSignal()," ")}}function Ci(n,o){1&n&&t._UZ(0,"div",15)}function Ai(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.hij(" ",e.allExcludedCountSumSignal()+e.foundersOthersPaidStatusesCountSignal()+e.activityRiskPaidCountSignal()," ")}}function yi(n,o){1&n&&t._UZ(0,"div",16)}function xi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",e.positiveCount," ")}}function ki(n,o){1&n&&t._UZ(0,"div",17)}function Ti(n,o){1&n&&t._uU(0," \u2013 ")}let Ni=(()=>{class n{constructor(e,s,i,a,c){this.risksStore=e,this.destroy=s,this.store=i,this.accessRightService=a,this.risksLoadingStateService=c,this.class="details details--stats",this.isAuth$=this.store.select(U.Mb),this.noOwnerRiskFactorStatus$=this.store.select(T.fC),this.currentFilterSignal=this.risksStore.currentFilter,this.allNegativeCountSumSignal=this.risksStore.allNegativeCountSum,this.allExcludedCountSumSignal=this.risksStore.allExcludedCountSum,this.foundersOthersPaidStatusesCountSignal=this.risksStore.foundersOthersPaidStatusesCount,this.activityRiskPaidCountSignal=this.risksStore.activityRiskPaidCount,this.noOwnerRiskFactorStatus=!1,this.isIp=!1,this.boughtCard=!1,this.enabledPenalty=this.accessRightService.enabledPenalty,this.riskFactorsCount=N.yl,this.RiskFilterEnum=v.F_,this.store.select(C.Io).pipe((0,g.sL)(this.destroy)).subscribe(u=>{this.isIp=u}),this.store.select(C.lW).pipe((0,g.sL)(this.destroy)).subscribe(u=>{this.cardAccesses=u,this.boughtCard="BOUGHT"===u?.status}),this.noOwnerRiskFactorStatus$.pipe((0,g.sL)(this.destroy)).subscribe(u=>{this.noOwnerRiskFactorStatus=u})}get riskAllCount(){const e=this.isIp?this.riskFactorsCount.ip.all:this.riskFactorsCount.ul.all-(this.enabledPenalty?0:1);return this.boughtCard&&this.noOwnerRiskFactorStatus?e-(this.isIp?this.riskFactorsCount.ip.owner:this.riskFactorsCount.ul.owner):e}get positiveCount(){return this.riskAllCount-this.allNegativeCountSumSignal()-this.allExcludedCountSumSignal()-this.foundersOthersPaidStatusesCountSignal()-this.activityRiskPaidCountSignal()}isGlobalLoading(){return this.risksLoadingStateService.isGlobalLoading()}setFilter(e,s){0!==s&&this.risksStore.setCurrentFilter(e)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(f.J),t.Y36(t.ktI),t.Y36(m.yh),t.Y36(mi.L),t.Y36(fi.B))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-risks-statistics"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},standalone:!0,features:[t.jDz],decls:42,vars:42,consts:[[1,"details__container"],[1,"details__layout"],[1,"details__data"],[1,"details__group","cursor-pointer",3,"click"],[1,"text","text--t3","text--gray"],[1,"group","group--4"],[1,"title","title--h5"],[1,"title","title--h5","title--red"],[4,"ngIf","ngIfElse"],["class","loader loader--red loader--24",4,"ngIf"],[1,"title","title--h5","title--orange"],["class","loader loader--24 loader--orange",4,"ngIf"],[1,"title","title--h5","title--green"],["class","loader loader--24 loader--green",4,"ngIf"],["noValue",""],[1,"loader","loader--red","loader--24"],[1,"loader","loader--24","loader--orange"],[1,"loader","loader--24","loader--green"]],template:function(s,i){if(1&s&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.all,i.riskAllCount)}),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",5)(8,"div",6),t._uU(9),t.qZA()()(),t.TgZ(10,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.yes,i.allNegativeCountSumSignal())}),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",5)(15,"div",7),t.YNc(16,Si,2,1,"ng-container",8),t.ALo(17,"async"),t.qZA(),t.YNc(18,Ci,1,0,"div",9),t.ALo(19,"async"),t.qZA()(),t.TgZ(20,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.attention,i.allExcludedCountSumSignal()+i.foundersOthersPaidStatusesCountSignal()+i.activityRiskPaidCountSignal())}),t.TgZ(21,"div",4),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"div",5)(25,"div",10),t.YNc(26,Ai,2,1,"ng-container",8),t.ALo(27,"async"),t.qZA(),t.YNc(28,yi,1,0,"div",11),t.ALo(29,"async"),t.qZA()(),t.TgZ(30,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.no,i.positiveCount)}),t.TgZ(31,"div",4),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"div",5)(35,"div",12),t.YNc(36,xi,2,1,"ng-container",8),t.ALo(37,"async"),t.qZA(),t.YNc(38,ki,1,0,"div",13),t.ALo(39,"async"),t.qZA()()()()(),t.YNc(40,Ti,1,0,"ng-template",null,14,t.W1O)),2&s){const a=t.MAs(41);t.xp6(3),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all),t.xp6(2),t.Oqu(t.lcZ(6,22,"risk_statistic.all")),t.xp6(4),t.hij(" ",i.riskAllCount," "),t.xp6(1),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all&&i.currentFilterSignal()!==i.RiskFilterEnum.yes),t.xp6(2),t.Oqu(t.lcZ(13,24,"risk_statistic.negatives")),t.xp6(4),t.Q6J("ngIf",i.boughtCard&&t.lcZ(17,26,i.isAuth$))("ngIfElse",a),t.xp6(2),t.Q6J("ngIf",t.lcZ(19,28,i.isGlobalLoading())),t.xp6(2),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all&&i.currentFilterSignal()!==i.RiskFilterEnum.attention),t.xp6(2),t.Oqu(t.lcZ(23,30,"risk_statistic.warnings")),t.xp6(4),t.Q6J("ngIf",i.boughtCard&&t.lcZ(27,32,i.isAuth$))("ngIfElse",a),t.xp6(2),t.Q6J("ngIf",t.lcZ(29,34,i.isGlobalLoading())),t.xp6(2),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all&&i.currentFilterSignal()!==i.RiskFilterEnum.no),t.xp6(2),t.Oqu(t.lcZ(33,36,"risk_statistic.positives")),t.xp6(4),t.Q6J("ngIf",i.boughtCard&&t.lcZ(37,38,i.isAuth$))("ngIfElse",a),t.xp6(2),t.Q6J("ngIf",t.lcZ(39,40,i.isGlobalLoading()))}},dependencies:[A.X$,_.O5,_.Ov],encapsulation:2})}}return n})();var dt=l(97770),Di=l(59687),Ei=l(76463),vi=l(23641),bi=l(55115),Zi=l(87115),Ii=l(62757),gt=l(71149);function Fi(n,o){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.ekj("text--green",e.activityCounts<=0)("text--red",e.activityCounts>0),t.xp6(1),t.hij("",e.activityCounts,"/")}}function Qi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Fi,2,5,"span",11),t.TgZ(2,"span",12),t._uU(3),t.qZA(),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.isAccess),t.xp6(2),t.Oqu(e.riskFactorsCount.person.activities)}}function Li(n,o){if(1&n&&(t.TgZ(0,"div",13),t._UZ(1,"div",14),t.TgZ(2,"div",12),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("\xa0/",e.riskFactorsCount.person.activities,"")}}function Ri(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",15),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openQamqorSidebar(1,a,"risk_factors.debtors_docs"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","risk_factors.debtors_docs")("item",e)("useOffUnavailableStub",!0)("sidebarName",s.SIDEBAR.QAMQOR_SERVICES_FL)}}function Yi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",16),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openQamqorSidebar(2,a,"risk_factors.criminal_investigation"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","risk_factors.criminal_investigation")("item",e)("useOffUnavailableStub",!0)("sidebarName",s.SIDEBAR.QAMQOR_SERVICES_FL)}}function Pi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",17),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openQamqorSidebar(3,a,"risk_factors.missing_person"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","risk_factors.missing_person")("item",e)("useOffUnavailableStub",!0)("sidebarName",s.SIDEBAR.QAMQOR_SERVICES_FL)}}function Bi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",18),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openQamqorSidebar(4,a,"risk_factors.alimony_debtors"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","risk_factors.alimony_debtors")("item",e)("useOffUnavailableStub",!0)("sidebarName",s.SIDEBAR.QAMQOR_SERVICES_FL)}}function Oi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",19),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openQamqorSidebar(5,a,"risk_factors.gis"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","risk_factors.gis")("item",e)("useOffUnavailableStub",!0)("sidebarName",s.SIDEBAR.QAMQOR_SERVICES_FL)}}function Ui(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",20),t.NdJ("refresh",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.updateProceedings())})("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openZapretSidebar(c.ZapretReestrTypes.proceedings,a,"risk_factors.enforcement_proceedings"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","risk_factors.enforcement_proceedings")("item",e)("isUpdateButtonExist",!0)("sidebarName",s.SIDEBAR.ZAPRET_FL_LIST)}}function Ji(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",21),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openZapretSidebar(c.ZapretReestrTypes.kazDebtors,a,"zapret_executives.title"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","zapret_executives.title")("item",e)("isUpdateButtonExist",!0)("sidebarName",s.SIDEBAR.ZAPRET_FL_LIST)}}function wi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",22),t.NdJ("downloadDocument",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.loadCompanyDoc())})("refresh",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.refreshTaxDebtFl())})("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openTaxDebtFlDetails(a,"activity.tax_debt_title"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","activity.tax_debt_title")("item",e)("isTax",!0)("taxLoadingPdf",s.taxLoadingPdf)("sidebarName",s.SIDEBAR.TAX_DEBT_FL_DETAILS)}}function $i(n,o){if(1&n){const e=t.EpF();
1t.ynx(0),t.TgZ(1,"app-tile",23),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.openTerrorismSidebar(c.terrorismFlConstants.terrorism_financial,a,"risk_factors.terror_financing"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();let i;t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","risk_factors.terror_financing")("item",null!==(i=e)&&void 0!==i?i:null)("useOffUnavailableStub",!0)("sidebarName",s.SIDEBAR.TERRORISM_FL)}}function ji(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",24),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.debtOnCustomsDetails(a,"debt_on_customs.title"))}),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","debt_on_customs.title")("item",e)("sidebarName",s.SIDEBAR.DEBT_ON_CUSTOMS_DETAILS)("isTax",!1)}}function Mi(n,o){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.ekj("text--green",e.arrestsCounts<=0)("text--red",e.arrestsCounts>0),t.xp6(1),t.hij("",e.arrestsCounts,"/")}}function Hi(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Mi,2,5,"span",11),t.TgZ(2,"span",12),t._uU(3),t.qZA()()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.isAccess),t.xp6(2),t.Oqu(e.riskFactorsCount.person.arrests)}}function qi(n,o){if(1&n&&(t.TgZ(0,"div",13),t._UZ(1,"div",14),t.TgZ(2,"div",12),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("\xa0/",e.riskFactorsCount.person.arrests,"")}}function Ki(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",25),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,c.arrestLinks().bankAccountsArrest,"arrests.title_4"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","arrests.title_4")("buttonText",t.lcZ(2,7,"arrests.download_details"))("item",e)("url","https://aisoip.adilet.gov.kz/")("sidebarName",s.SIDEBAR.YES)}}function Gi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",26),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,c.arrestLinks().notarialActions,"arrests.title_5"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","arrests.title_5")("buttonText",t.lcZ(2,7,"arrests.download_details"))("item",e)("url","https://aisoip.adilet.gov.kz/")("sidebarName",s.SIDEBAR.YES)}}function Xi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",27),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,c.arrestLinks().propertyArrest,"arrests.title_6"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","arrests.title_6")("buttonText",t.lcZ(2,7,"arrests.download_details"))("item",e)("url","https://aisoip.adilet.gov.kz/")("sidebarName",s.SIDEBAR.YES)}}function zi(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-tile",28),t.NdJ("changeDetailsPage",function(){const a=t.CHM(e).ngIf,c=t.oxw();return t.KtG(c.saveDetails(a,c.arrestLinks().transportArrest,"arrests.title_7"))}),t.ALo(2,"translate"),t.qZA(),t.BQk()}if(2&n){const e=o.ngIf,s=t.oxw();t.xp6(1),t.Q6J("identifier",s.identifier)("isAccess",s.isAccess)("name","arrests.title_7")("buttonText",t.lcZ(2,7,"arrests.download_details"))("item",e)("url","https://aisoip.adilet.gov.kz/")("sidebarName",s.SIDEBAR.YES)}}const pt=function(n){return{"accordion--active":n}},p=function(){return{}};let Vi=(()=>{class n{constructor(e,s,i,a,c,u,d,h,S,x,O,nt,rt){this.risksStore=e,this.taxDebtService=s,this.rootStore=i,this.storeDebtorsFl=a,this.qamqorFlStore=c,this.aisoipFlStore=u,this.terrorismFlStore=d,this.proceedingsFlStore=h,this.kazDebtorsFlStore=S,this.taxDebtFlStore=x,this.debtOnCustomsStore=O,this.toastr=nt,this.loadingStateService=rt,this.class="details__risks-item",this.countedStatuses=[r.Q_.YES,r.Q_.EXCLUDED],this.status=r.Q_,this.isAccordionActivities=!1,this.isAccordionArrest=!0,this.allCount=0,this.hasDebtorsFl=this.storeDebtorsFl.hasData,this.debtorsFlStatusItem=this.storeDebtorsFl.tileStatusItem,this.debtorsTabs=this.storeDebtorsFl.moreTabs,this.dataDebtorsFl=this.storeDebtorsFl.data,this.dataDebtorsLoading=this.storeDebtorsFl.loading,this.debtorsDefendants=this.qamqorFlStore.selectDebtorsStatus,this.criminalInvestigation=this.qamqorFlStore.selectCriminalStatus,this.missingPersons=this.qamqorFlStore.selectMissingStatus,this.alimonyDebtors=this.qamqorFlStore.selectAlimonyStatus,this.pedophilesDb=this.qamqorFlStore.selectPedophilesStatus,this.bankAccountsArrest=this.aisoipFlStore.bankAccountsArrest,this.notarialActions=this.aisoipFlStore.notarialActions,this.propertyArrest=this.aisoipFlStore.propertyArrest,this.transportArrest=this.aisoipFlStore.transportArrest,this.arrestLinks=this.aisoipFlStore.links,this.terrorismFlConstants=dt.Tw,this.terrorismStatusFinancial=this.terrorismFlStore.statusTerrorismFinancial,this.terrorismStatusRelated=this.terrorismFlStore.statusTerrorismRelated,this.proceedingsStatus=this.proceedingsFlStore.status,this.kazDebtorsStatus=this.kazDebtorsFlStore.status,this.taxDebtStatus=this.taxDebtFlStore.status,this.debtOnCustomsStatusSignal=this.debtOnCustomsStore.status,this.riskFactorsCount=N.yl,this.activitiesLoader=(0,t.Flj)(()=>this.loadingStateService.activitiesLoader()),this.arrestsLoader=(0,t.Flj)(()=>this.loadingStateService.arrestsLoader()),this.STATUS=r.Q_,this.ZapretReestrTypes=v.Gr,this.SIDEBAR=r.jy}get activityCounts(){return(this.countedStatuses.includes(this.terrorismStatusFinancial()?.status)?1:0)+(this.countedStatuses.includes(this.terrorismStatusRelated()?.status)?1:0)+(this.countedStatuses.includes(this.debtorsDefend
1ants()?.status)?1:0)+(this.countedStatuses.includes(this.criminalInvestigation()?.status)?1:0)+(this.countedStatuses.includes(this.missingPersons()?.status)?1:0)+(this.countedStatuses.includes(this.alimonyDebtors()?.status)?1:0)+(this.countedStatuses.includes(this.pedophilesDb()?.status)?1:0)+(this.countedStatuses.includes(this.proceedingsStatus()?.status)?1:0)+(this.countedStatuses.includes(this.kazDebtorsStatus()?.status)?1:0)+(this.countedStatuses.includes(this.taxDebtStatus()?.status)?1:0)+(this.countedStatuses.includes(this.debtOnCustomsStatusSignal()?.status)?1:0)+(this.hasDebtorsFl()?1:0)}get arrestsCounts(){return(this.countedStatuses.includes(this.bankAccountsArrest()?.status)?1:0)+(this.countedStatuses.includes(this.notarialActions()?.status)?1:0)+(this.countedStatuses.includes(this.propertyArrest()?.status)?1:0)+(this.countedStatuses.includes(this.transportArrest()?.status)?1:0)}setNoYesStatus(e){switch(e?.status){case r.Q_.NO:this.risksStore.updateCurrentPage(r.jy.NO);break;case r.Q_.OFF:this.risksStore.updateCurrentPage(r.jy.OFF);break;case r.Q_.NOT_RESIDENT:this.risksStore.updateCurrentPage(r.jy.NOT_RESIDENT);break;case r.Q_.REJECTED:this.risksStore.updateCurrentPage(r.jy.REJECTED);break;default:this.risksStore.updateCurrentPage(e.error?r.jy.ERROR:r.jy.SYNC)}}openQamqorSidebar(e,s,i){this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.qamqorFlStore.loadQamqorFlDetailsEffect(e),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.QAMQOR_SERVICES_FL):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}openZapretSidebar(e,s,i){if(this.risksStore.setItem(s),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)){switch(e){case v.Gr.proceedings:this.risksStore.setCurrentZapret(v.Gr.proceedings),this.proceedingsFlStore.loadDetailsEffect();break;case v.Gr.kazDebtors:this.risksStore.setCurrentZapret(v.Gr.kazDebtors),this.kazDebtorsFlStore.loadDetailsEffect()}[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.ZAPRET_FL_LIST):this.risksStore.updateCurrentPage(r.jy.SYNC)}else this.setNoYesStatus(s)}openTaxDebtFlDetails(e,s){this.risksStore.setItem(e),this.risksStore.setPageName(s);const i=(0,$.g)(e?.status,e?.cacheStatus);[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)||i?(this.taxDebtFlStore.loadDetailsEffect(),i||[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.TAX_DEBT_FL_DETAILS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}openTerrorismSidebar(e,s,i){this.risksStore.setItem(null),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(s.status)?(this.terrorismFlStore.loadTerrorismDetailsFlEffect(e),[r.Q_.YES,r.Q_.EXCLUDED].includes(s.status)?this.risksStore.updateCurrentPage(r.jy.TERRORISM_FL):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(s)}openDebtorsFlSidebar(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.Q_.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.storeDebtorsFl.setData(this.dataDebtorsFl()),this.storeDebtorsFl.getDebtorsFlDetailsByIdEffect({typeId:this.debtorsTabs()?.[0]??Di.Hw.type_1,person:"FL",id:this.identifier}),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.DEBTORS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}debtOnCustomsDetails(e,s){this.risksStore.setItem(null),this.risksStore.setPageName(s),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?(this.debtOnCustomsStore.loadDetailsFlEffect(),[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.DEBT_ON_CUSTOMS_DETAILS):this.risksStore.updateCurrentPage(r.jy.SYNC)):this.setNoYesStatus(e)}saveDetails(e,s,i){this.risksStore.setItem({...e,url:s,types:v.$d.ArrestsFl}),this.risksStore.setPageName(i),[r.Q_.YES,r.jy.SYNC,r.Q_.EXCLUDED].includes(e.status)?[r.Q_.YES,r.Q_.EXCLUDED].includes(e.status)?this.risksStore.updateCurrentPage(r.jy.YES):this.risksStore.updateCurrentPage(r.jy.SYNC):this.setNoYesStatus(e)}loadCompanyDoc(){this.taxLoadingPdf||(this.taxLoadingPdf=!0,this.identifier&&this.taxDebtService.getFlDoc(this.identifier).pipe((0,H.q)(1),(0,J.b)(e=>{window.open(URL.createObjectURL(e),"_target")}),(0,tt.K)(()=>(this.toastr.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0438!"),(0,q.of)(null))),(0,K.x)(()=>{this.taxLoadingPdf=!1})).subscribe())}ngOnDestroy(){this.qamqorFlStore.cancelRequest()}refreshTaxDebtFl(){this.taxDebtFlStore.loadStatusEffect({identifier:this.identifier,update:W.B.STATUS})}updateProceedings(){}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(f.J),t.Y36(L.N_),t.Y36(m.yh),t.Y36(st.xf),t.Y36(Ei.gi),t.Y36(vi.T),t.Y36(dt.iQ),t.Y36(bi.n2),t.Y36(Zi.VJ),t.Y36(Ii._v),t.Y36(j.v),t.Y36(et._W),t.Y36(gt.C))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-risk-activity-fl"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{isAccess:"isAccess",identifier:"identifier",oldCompanyId:"oldCompanyId"},standalone:!0,features:[t.jDz],decls:40,vars:49,consts:[[1,"accordion","accordion--risks",3,"ngClass"],[1,"accordion__header",3,"click"],[1,"accordion__toggle","icon"],[1,"accordion__title"],[1,"accordion__status"],[4,"ngIf"],["class","flex-center",4,"ngIf"],[1,"accordion__body"],[1,"accordion__section"],["data-id","debtors-fl-widget",3,"identifier","isAccess","name","item","sidebarName","changeDetailsPage"],[1,"spacer","spacer--20"],["class","text",3,"text--green","text--red",4,"ngIf"],[1,"text"],[1,"flex-center"],[1,"loader","loader--20"],["data-id","debtors-defendants-widget",3,"identifier","isAccess","name","item","useOffUnavailableStub","sidebarName","changeDetailsPage"],["data-id","criminal-investigation-widget",3,"identifier","isAccess","name","item","useOffUnavailableStub","sidebarName","changeDetailsPage"],["data-id","missing-persons-widget",3,"identifier","isAccess","name","item","useOffUnavailableStub","sidebarName","changeDetailsPage"],["data-id","alimony-debtors-widget",3,"identifier","isAccess","name","item","useOffUnavailableStub","sidebarName","changeDetailsPage"],["data-id","pedophiles-db-widget",3,"identifier","isAccess","name","item","useOffUnavailableStub","sidebarName","changeDetailsPage"],["data-id","enforcement-proceedings",3,"identifier","isAccess","name","item","isUpdateButtonExist","sidebarName","refresh","changeDetailsPage"],["name","\u0417\u0430\u043f\u0440\u0435\u0442 \u043d\u0430 \u0432\u044b\u0435\u0437\u0434 \u0438\u0437 \u0420\u041a","data-id","kaz-debtors-list",3,"identifier","isAccess","name","item","isUpdateButtonExist","sidebarName","changeDetailsPage"],["data-id","tax-debt",3,"identifier","isAccess","name","item","isTax","taxLoadingPdf","sidebarName","downloadDocument","refresh","changeDetailsPage"],["data-id","financing-of-terrorism",3,"identifier","isAccess","name","item","useOffUnavailableStub","sidebarName","changeDetailsPage"],["data-id","debt-on-customs",3,"identifier","isAccess","name","item","sidebarName","
1isTax","changeDetailsPage"],["data-id","bank-accounts-arrest",3,"identifier","isAccess","name","buttonText","item","url","sidebarName","changeDetailsPage"],["data-id","notarial-actions",3,"identifier","isAccess","name","buttonText","item","url","sidebarName","changeDetailsPage"],["data-id","property-arrest",3,"identifier","isAccess","name","buttonText","item","url","sidebarName","changeDetailsPage"],["data-id","transport-arrest",3,"identifier","isAccess","name","buttonText","item","url","sidebarName","changeDetailsPage"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.isAccordionActivities=!i.isAccordionActivities}),t.TgZ(2,"div",2),t._UZ(3,"icon-chevron-down"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"div",4),t.YNc(8,Qi,4,2,"ng-container",5),t.YNc(9,Li,4,1,"div",6),t.qZA()()(),t.TgZ(10,"div",7)(11,"div",8),t.YNc(12,Ri,2,6,"ng-container",5),t.YNc(13,Yi,2,6,"ng-container",5),t.YNc(14,Pi,2,6,"ng-container",5),t.YNc(15,Bi,2,6,"ng-container",5),t.YNc(16,Oi,2,6,"ng-container",5),t.YNc(17,Ui,2,6,"ng-container",5),t.YNc(18,Ji,2,6,"ng-container",5),t.YNc(19,wi,2,7,"ng-container",5),t.YNc(20,$i,2,6,"ng-container",5),t.TgZ(21,"app-tile",9),t.NdJ("changeDetailsPage",function(){return i.openDebtorsFlSidebar(i.debtorsFlStatusItem(),"bankruptcy.bankruptcy_proceedings")}),t.qZA(),t.YNc(22,ji,2,6,"ng-container",5),t.qZA()()(),t._UZ(23,"div",10),t.TgZ(24,"div",0)(25,"div",1),t.NdJ("click",function(){return i.isAccordionArrest=!i.isAccordionArrest}),t.TgZ(26,"div",2),t._UZ(27,"icon-chevron-down"),t.qZA(),t.TgZ(28,"div",3),t._uU(29),t.ALo(30,"translate"),t.TgZ(31,"div",4),t.YNc(32,Hi,4,2,"div",5),t.YNc(33,qi,4,1,"div",6),t.qZA()()(),t.TgZ(34,"div",7)(35,"div",8),t.YNc(36,Ki,3,9,"ng-container",5),t.YNc(37,Gi,3,9,"ng-container",5),t.YNc(38,Xi,3,9,"ng-container",5),t.YNc(39,zi,3,9,"ng-container",5),t.qZA()()()),2&s&&(t.Q6J("ngClass",t.VKq(31,pt,i.isAccordionActivities)),t.xp6(5),t.hij(" ",t.lcZ(6,27,"activity.title")," "),t.xp6(3),t.Q6J("ngIf",!i.activitiesLoader()&&!i.dataDebtorsLoading()),t.xp6(1),t.Q6J("ngIf",i.activitiesLoader()||i.dataDebtorsLoading()),t.xp6(3),t.Q6J("ngIf",i.debtorsDefendants()||t.DdM(33,p)),t.xp6(1),t.Q6J("ngIf",i.criminalInvestigation()||t.DdM(34,p)),t.xp6(1),t.Q6J("ngIf",i.missingPersons()||t.DdM(35,p)),t.xp6(1),t.Q6J("ngIf",i.alimonyDebtors()||t.DdM(36,p)),t.xp6(1),t.Q6J("ngIf",i.pedophilesDb()||t.DdM(37,p)),t.xp6(1),t.Q6J("ngIf",i.proceedingsStatus()||t.DdM(38,p)),t.xp6(1),t.Q6J("ngIf",i.kazDebtorsStatus()||t.DdM(39,p)),t.xp6(1),t.Q6J("ngIf",i.taxDebtStatus()||t.DdM(40,p)),t.xp6(1),t.Q6J("ngIf",i.terrorismStatusFinancial()||t.DdM(41,p)),t.xp6(1),t.Q6J("identifier",i.identifier)("isAccess",i.isAccess)("name","bankruptcy.bankruptcy_proceedings")("item",i.debtorsFlStatusItem())("sidebarName",i.SIDEBAR.DEBTORS),t.xp6(1),t.Q6J("ngIf",i.debtOnCustomsStatusSignal()||t.DdM(42,p)),t.xp6(2),t.Q6J("ngClass",t.VKq(43,pt,i.isAccordionArrest)),t.xp6(5),t.hij(" ",t.lcZ(30,29,"offers-promo.group2.block5_title")," "),t.xp6(3),t.Q6J("ngIf",!i.arrestsLoader()),t.xp6(1),t.Q6J("ngIf",i.arrestsLoader()),t.xp6(3),t.Q6J("ngIf",i.bankAccountsArrest()||t.DdM(45,p)),t.xp6(1),t.Q6J("ngIf",i.notarialActions()||t.DdM(46,p)),t.xp6(1),t.Q6J("ngIf",i.propertyArrest()||t.DdM(47,p)),t.xp6(1),t.Q6J("ngIf",i.transportArrest()||t.DdM(48,p)))},dependencies:[b.P,A.X$,_.O5,_.mk,k.b,E.R],encapsulation:2})}}return n})(),Wi=(()=>{class n{constructor(e,s,i){this.destroy=e,this.store=s,this.risksStore=i,this.class="group group--vertical group--12",this.identifier="",this.isAuth$=this.store.select(U.Mb),this.withRiskSignal=this.risksStore.withRisks,this.boughtCard=!1}ngOnInit(){this.store.select(C.lW).pipe((0,g.sL)(this.destroy)).subscribe(e=>{this.boughtCard="BOUGHT"===e?.status}),this.store.select(C.SS).pipe((0,g.sL)(this.destroy)).subscribe(e=>{this.oldCompanyId=e})}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(t.ktI),t.Y36(m.yh),t.Y36(f.J))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-risks-widgets-group-fl"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},inputs:{identifier:"identifier"},standalone:!0,features:[t.jDz],decls:1,vars:3,consts:[[3,"identifier","isAccess","oldCompanyId"]],template:function(s,i){1&s&&t._UZ(0,"app-risk-activity-fl",0),2&s&&t.Q6J("identifier",i.identifier)("isAccess",i.boughtCard)("oldCompanyId",i.oldCompanyId)},dependencies:[Vi],encapsulation:2})}}return n})();function tn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.hij(" ",e.allNegativePersonCountSum()," ")}}function en(n,o){1&n&&t._UZ(0,"div",15)}function sn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",e.allExcludedPersonCountSum()," ")}}function nn(n,o){1&n&&t._UZ(0,"div",16)}function rn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",e.positivePersonCount()," ")}}function an(n,o){1&n&&t._UZ(0,"div",17)}function on(n,o){1&n&&t._uU(0," \u2013 ")}let cn=(()=>{class n{constructor(e,s,i,a){this.destroy=e,this.risksStore=s,this.store=i,this.risksLoadingFlStateService=a,this.class="details details--stats",this.isAuth$=this.store.select(U.Mb),this.currentFilterSignal=this.risksStore.currentFilter,this.allNegativePersonCountSum=this.risksStore.allNegativePersonCountSum,this.allExcludedPersonCountSum=this.risksStore.allExcludedPersonCountSum,this.positivePersonCount=this.risksStore.positivePersonCount,this.boughtCard=!1,this.RiskFilterEnum=v.F_,this.riskFactorsCount=N.yl,this.store.select(C.lW).pipe((0,g.sL)(this.destroy)).subscribe(c=>{this.boughtCard="BOUGHT"===c?.status})}get risksGlobalLoading(){return this.risksLoadingFlStateService.isGlobalLoading()}setFilter(e,s){0!==s&&this.risksStore.setCurrentFilter(e)}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(t.ktI),t.Y36(f.J),t.Y36(m.yh),t.Y36(gt.C))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-risks-statistics-fl"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},standalone:!0,features:[t.jDz],decls:39,vars:36,consts:[[1,"details__container"],[1,"details__layout"],[1,"details__data"],[1,"details__group","cursor-pointer",3,"click"],[1,"text","text--t3","text--gray"],[1,"group","group--4"],[1,"title","title--h5"],[1,"title","title--h5","title--red"],[4,"ngIf","ngIfElse"],["class","loader loader--red loader--24",4,"ngIf"],[1,"title","title--h5","title--orange"],["class","loader loader--24 loader--orange",4,"ngIf"],[1,"title","title--h5","title--green"],["class","loader loader--24 loader--green",4,"ngIf"],["noValue",""],[1,"loader","loader--red","loader--24"],[1,"loader","loader--24","loader--orange"],[1,"loader","loader--24","loader--green"]],template:function(s,i){if(1&s&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.all,i.riskFactorsCount.person.all)}),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",5)(8,"div",6),t._uU(9),t.qZA()()(),t.TgZ(10,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.yes,i.allNegativePersonCountSum())}),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",5)(15,"div",7),t.YNc(16,tn,2,1,"ng-container",8),t.ALo(17,"async"),t.qZA(),t.YNc(18,en,1,0,"div",9),t.qZA()(),t.TgZ(19,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.attention,i.allExcludedPersonCountSum())}),t.TgZ(20,"div",4),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"div",5)(24,"div",10),t.YNc(25,sn,2,1,"ng-container",8),t.ALo(26,"async"),t.qZA(),t.YNc(27,nn,1,0,"div",11),t.qZA()(),t.TgZ(28,"div",3),t.NdJ("click",function(){return i.setFilter(i.RiskFilterEnum.no,i.positivePersonCount())}),t.TgZ(29,"div",4),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"div",5)(33,"div",12),t.YNc(34,rn,2,1,"ng-container",8),t.ALo(35,"async"),t.qZA(),t.YNc(36,an,1,0,"div",13),t.qZA()()()()(),t.YNc(37,on,1,0,"ng-template",null,14,t.W1O)),2&s){const a=t.MAs(38);t.xp6(3),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all),t.xp6(2),t.Oqu(t.lcZ(6,22,"risk_statistic.all")),t.xp6(4),t.hij(" ",i.riskFactorsCount.person.all," "),t.xp6(1),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all&&i.currentFilterSignal()!==i.RiskFilterEnum.yes),t.xp6(2),t.Oqu(t.lcZ(13,24,"risk_statistic.negatives")),t.xp6(4),t.Q6J("ngIf",i.boughtCard&&t.lcZ(17,26,i.isAuth$))("ngIfElse",a),t.xp6(2),t.Q6J("ngIf",i.risksGlobalLoading),t.xp6(1),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all&&i.currentFilterSignal()!==i.RiskFilterEnum.attention),t.xp6(2),t.Oqu(t.lcZ(22,28,"risk_statistic.warnings")),t.xp6(4),t.Q6J("ngIf",i.boughtCard&&t.lcZ(26,30,i.isAuth$))("ngIfElse",a),t.xp6(2),t.Q6J("ngIf",i.risksGlobalLoading),t.xp6(1),t.ekj("inactive",i.currentFilterSignal()!==i.RiskFilterEnum.all&&i.currentFilterSignal()!==i.RiskFilterEnum.no),t.xp6(2),t.Oqu(t.lcZ(31,32,"risk_statistic.positives")),t.xp6(4),t.Q6J("ngIf",i.boughtCard&&t.lcZ(35,34,i.isAuth$))("ngIfElse",a),t.xp6(2),t.Q6J("ngIf",i.risksGlobalLoading)}},dependencies:[A.X$,_.O5,_.Ov],encapsulation:2})}}return n})();var ln=l(14961);function _n(n,o){1&n&&t._UZ(0,"app-risks-statistics")}function un(n,o){1&n&&t._UZ(0,"app-risks-statistics-fl")}function dn(n,o){if(1&n&&(t._UZ(0,"app-risks-widgets-group",15),t.ALo(1,"async")),2&n){const e=t.oxw();t.Q6J("identifier",t.lcZ(1,1,e.identifier$))}}function gn(n,o){if(1&n&&(t._UZ(0,"app-risks-widgets-group-fl",15),t.ALo(1,"async")),2&n){const e=t.oxw();t.Q6J("identifier",t.lcZ(1,1,e.identifier$))}}let pn=(()=>{class n{constructor(e,s,i,a){this.risksStore=e,this.router=s,this.store=i,this.destroyRef=a,this.class="overview__content",this.identifier$=this.store.select(C.KK),this.boughtCard=!1,this.showStatistics=!1,this.SIDEBAR=r.jy}ngOnInit(){this.store.select(C.lW).pipe((0,g.sL)(this.destroyRef)).subscribe(e=>{this.boughtCard="BOUGHT"===e?.status})}get isPersonCard(){return this.router.url.includes("card/person")}get isCompanyCard(){return this.router.url.includes("card/company")}static{this.\u0275fac=function(s){return new(s||n)(t.Y36(f.J),t.Y36(ln.F0),t.Y36(m.yh),t.Y36(t.ktI))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["app-card-risks"]],hostVars:2,hostBindings:function(s,i){2&s&&t.Tol(i.class)},standalone:!0,features:[t._Bn([_.H9]),t.jDz],decls:22,vars:12,consts:[[1,"overview__content"],[1,"details"],[1,"details__header"],[1,"details-header"],[1,"details-header__title"],[1,"text","text--t1b"],[1,"details__body"],[1,"accordion","accordion--border"],[1,"accordion__header","cursor-pointer",3,"click"],[1,"accordion__toggle","icon"],[1,"text","text--t2b"],[1,"accordion__body"],[4,"ngIf"],[1,"spacing","spacing--20"],[3,"identifier",4,"ngIf"],[3,"identifier"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),t._uU(6),t.ALo(7,"translate"),t.qZA()()()(),t.TgZ(8,"div",6)(9,"div",7)(10,"div",8),t.
1NdJ("click",function(){return i.showStatistics=!i.showStatistics}),t.TgZ(11,"div",9),t._UZ(12,"icon-chevron-down"),t.qZA(),t.TgZ(13,"div",10),t._uU(14),t.ALo(15,"translate"),t.qZA()(),t.TgZ(16,"div",11),t.YNc(17,_n,1,0,"app-risks-statistics",12),t.YNc(18,un,1,0,"app-risks-statistics-fl",12),t.qZA()(),t._UZ(19,"div",13),t.YNc(20,dn,2,3,"app-risks-widgets-group",14),t.YNc(21,gn,2,3,"app-risks-widgets-group-fl",14),t.qZA()()()),2&s&&(t.xp6(6),t.hij(" ",t.lcZ(7,8,"card.card_navbar.risk_factors")," "),t.xp6(3),t.ekj("accordion--active",i.showStatistics),t.xp6(5),t.hij(" ",t.lcZ(15,10,"risk_statistic.title")," "),t.xp6(3),t.Q6J("ngIf",i.isCompanyCard),t.xp6(1),t.Q6J("ngIf",i.isPersonCard),t.xp6(2),t.Q6J("ngIf",i.isCompanyCard),t.xp6(1),t.Q6J("ngIf",i.isPersonCard))},dependencies:[_.O5,cn,k.b,E.R,A.X$,_.Ov,hi,Ni,Wi],encapsulation:2})}}return n})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.