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