"use strict";(self.webpackChunkaesirx_cmp=self.webpackChunkaesirx_cmp||[]).push([[742],{77742:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var s=a(6129),i=a(63037),n=(a(95394),a(33353)),l=(a(43029),a(96540)),r=a(32389),o=a(56795),c=a(2376),d=a(44479),m=a(61105),h=a(95184),p=(0,o.PA)((()=>{const{t:e}=(0,r.Bd)(),{consentsList:{initialize:t,consentsListData:a,statusConsentsList:o,handleFilterDateRange:p,handleFilterTableConsentsList:u,consentsDateData:g,statusConsentsDate:v,consentsTierData:b,statusTierChart:E,sortBy:_,getConsentsList:f}}=(0,s.j)(),{biListViewModel:{activeDomain:w,integrationLink:C}}=(0,n.jd)(),x=(0,l.useCallback)(((e,t)=>{p(e??t,t??e)}),[]);(0,l.useEffect)((()=>((async()=>{await t({...w?.map(((e,t)=>({[`filter[domain][${t+1}]`]:e})))?.reduce(((e,t)=>({...e,...t})),{})})})(),()=>{})),[w]);return l.createElement("div",{className:"py-4 px-4 h-100 d-flex flex-column min-vh-100"},l.createElement("div",{className:"d-flex align-items-center justify-content-between mb-24 flex-wrap"},l.createElement("div",{className:"position-relative"},l.createElement("h2",{className:"fw-medium mb-3 mt-3"},e("dashboard"!==C?"txt_consent_log":"txt_menu_consents"))),l.createElement("div",{className:"position-relative havePrintButton"},l.createElement(i.Kp,{onChange:x}))),l.createElement(d.A,{className:"mb-24"},l.createElement(m.A,{lg:"8"},l.createElement("div",{className:"ChartWrapper bg-white rounded-3 d-flex align-items-center h-100"},l.createElement("div",{className:"position-relative w-100 h-100"},l.createElement(i.n2,{height:400,data:g?.list,colors:["#1AB394"],layout:"horizontal",barColors:["#0066FF"],bars:["Total"],hiddenGrid:{vertical:!1},XAxisOptions:{axisLine:!0,padding:{left:50,right:50}},defaultValue:{label:"Visitors",value:"visitors"},options:[{label:"Visitors",value:"visitors"}],loading:v,tooltipComponent:{header:e("txt_in_total"),value:""},status:v,filterData:[{label:"Visitors",value:"visitors"}],isSelection:!1,isLegend:!0,filterButtons:["days","months","weeks"]})))),l.createElement(m.A,{lg:"4"},l.createElement("div",{className:"mb-24 ChartWrapper bg-white rounded-3 d-flex align-items-start w-100 h-100 position-relative"},l.createElement("div",{className:"w-100"},b?.length||E===h.Zg.LOADING?l.createElement(i.Su,{height:450,data:b,status:E,colors:["#1A2B88","#4855A0","#67A4FF","#ADCEFF","#A3AACF"],legendPosition:"bottom",chartTitle:e("txt_manage_track"),showTotal:!0}):l.createElement("div",{className:"position-absolute top-50 start-50 translate-middle"},l.createElement(i.Js,{icons:c._K2.PUBLIC_URL+"/assets/images/ic_project.svg",title:e("txt_no_data"),width:"w-50"})))))),l.createElement("div",{className:"bg-white position-relative ChartWrapper rounded-3"},a?.list?l.createElement(i.Xc,{data:a?.list,statusTable:o,isPaginationAPI:!0,pagination:a?.pagination,isTranslate:!0,handleFilterTable:u,handleSort:async e=>{f({...w?.map(((e,t)=>({[`filter[domain][${t+1}]`]:e})))?.reduce(((e,t)=>({...e,...t})),{})},{},{"sort[]":e?.id,"sort_direction[]":"desc"===_["sort_direction[]"]?"asc":"desc"})},sortBy:_}):l.createElement("div",{className:"position-absolute top-50 start-50 translate-middle"},l.createElement(i.Js,{icons:c._K2.PUBLIC_URL+"/assets/images/ic_project.svg",title:e("txt_no_data"),width:"w-50"}))))}))}}]);