/*! For license information please see aae5a05de5dcce335be7.js.LICENSE.txt */
"use strict";(self.webpackChunkaesirx_cmp=self.webpackChunkaesirx_cmp||[]).push([[937],{99937:(t,e,i)=>{i.r(e),i.d(e,{default:()=>R});var a=i(95394),s=i(33353),n=i(43029),r=i(96540),c=i(56347),l=i(99258),o=i(95093),h=i.n(o),u=i(56795),d=i(32389),v=class{},p=r.createContext(),M=({children:t,viewModel:e})=>r.createElement(p.Provider,{value:e},t),S=class{constructor(t,e){(0,n.Mu)(this,"privacyScannerStore",null),(0,n.Mu)(this,"status",a.s.READY),(0,n.Mu)(this,"globalStoreViewModel",null),(0,n.Mu)(this,"data",null),(0,n.Mu)(this,"dataFilter",{}),(0,n.Mu)(this,"statusPrivacyScanner",a.s.READY),(0,n.Mu)(this,"statusUpdatePrivacyScanner",a.s.READY),(0,n.Mu)(this,"privacyScanner",null),(0,n.Mu)(this,"sortBy",{"sort[]":"","sort_direction[]":""}),(0,n.Mu)(this,"initialize",(async()=>{})),(0,n.Mu)(this,"setDataFilter",(t=>{this.dataFilter=t})),(0,n.Mu)(this,"handleFilterDateRange",((t,e)=>{this.statusPrivacyScanner=a.s.LOADING;const i={...this.globalStoreViewModel.dateFilter,date_start:h()(t).format("YYYY-MM-DD"),date_end:h()(e).endOf("day").format("YYYY-MM-DD")};this.dateFilter={...this.dateFilter,...i},this.initialize(this.dataFilter,i)})),(0,n.Mu)(this,"callbackOnErrorHandler",(()=>{this.status=a.s.READY,this.statusPrivacyScanner=a.s.READY,this.privacyScanner={}})),(0,n.Mu)(this,"callbackOnErrorUpdateConsentHandler",(()=>{this.status=a.s.READY,this.statusUpdatePrivacyScanner=a.s.READY})),(0,n.Mu)(this,"callbackOnDataPrivacyScannerListSuccessHandler",(t=>{t?(this.statusPrivacyScanner=a.s.READY,this.privacyScanner=t):(this.statusPrivacyScanner=a.s.ERROR,this.privacyScanner={})})),(0,n.Mu)(this,"callbackOnDataUpdatePrivacyScannerSuccessHandler",(t=>{t?(this.statusUpdatePrivacyScanner=a.s.READY,this.privacyScanner=t):(this.statusUpdatePrivacyScanner=a.s.ERROR,this.privacyScanner={})})),(0,l.l_)(this),this.privacyScannerStore=t,this.globalStoreViewModel=e}},y=class{constructor(t,e){(0,n.Mu)(this,"privacyScannerList",null),(0,n.Mu)(this,"getPrivacyScannerListViewModel",(()=>this.privacyScannerList)),t&&(this.privacyScannerList=new S(t,e))}},m=(0,r.lazy)((()=>i.e(497).then(i.bind(i,63497)))),w=({link:t,...e})=>r.createElement(m,{...e}),D=(0,u.PA)(class extends r.Component{constructor(t){super(t),(0,n.Mu)(this,"privacyScannerStore",null),(0,n.Mu)(this,"behaviorViewModel",null);const{viewModel:e}=t;this.viewModel=e||null,this.biListViewModel=this.viewModel?this.viewModel.getBiListViewModel():null,this.privacyScannerStore=new v({}),this.behaviorViewModel=new y(this.privacyScannerStore,this.biListViewModellog)}render(){const{integration:t=!1}=this.props,{integrationLink:e,activeDomain:i}=this.biListViewModel;return r.createElement(M,{viewModel:this.behaviorViewModel},r.createElement(E,{integration:t,integrationLink:e,activeDomain:i,ref:t=>this.componentRef=t}))}}),E=(0,u.PA)(class extends r.Component{constructor(t){super(t)}render(){return r.createElement("div",{className:"aesirxui"},this.props.integration?r.createElement(w,{link:this.props.integrationLink,activeDomain:this.props.activeDomain,...this.props}):r.createElement(r.Fragment,null,r.createElement(c.qh,{exact:!0,path:["/privacy-scanner"]},r.createElement(m,null))))}}),R=(0,d.CI)()((0,c.y)((0,s.cm)(D)))}}]);