1"use strict";(globalThis.webpackChunk_archive_intel_client_ui||=[]).push([[2010],{45861(e,t,a){a(50016);const s=a.p+"static/media/icon-total-users.515c7f7f2beccbf1544799a07202cce5.svg";a.d(t,["A",0,s])},82010(e,t,a){a.r(t),a.d(t,{default:()=>h});var s=a(40763),o=a(40013),r=a(36642),n=a(13161),c=a(7630);var d=a(2181),i=a(90076);const l=e=>{const t=(0,d.Zp)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(n.A,{className:"dashboard-review-card mb-4",style:{backgroundColor:e.bgColor},onClick:()=>{"Total Connectors"===e.CardName?t("/connector",{state:{from:"ADMIN_DASHBOARD"}}):"Total Escalated"===e.CardName?t("/review/escalate"):"Total Users"===e.CardName?t("/organization"):"Total Errors In Connectors"===e.CardName?t("/connectors-report"):t("")},children:[(0,i.jsx)("img",{src:e.Icon,alt:"icon",width:70,height:70,className:"icon"}),(0,i.jsx)("p",{className:"mb-1 text-secondary font-18",children:e.CardName}),(0,i.jsx)("p",{className:"mb-0 font-28 font-bold",children:""===e.Count?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c.A,{animation:"border",role:"status",size:"sm",style:{borderWidth:"2px"},children:(0,i.jsx)("span",{className:"sr-only"})})}):e.Count})]})})};var g=a(50016),u=a(51746),C=a(45861);const f=a.p+"static/media/icon-total-connectors.fdaa364faac2096e84e901c8e9bc66d3.svg";const m=a.p+"static/media/icon-total-errors.7b02c68c19d5034be17dd4023f779aba.svg";const p=a.p+"static/media/icon-total-flagged.7c9ff29fd7facfa50b682f0c5c724b41.svg";const v=a.p+"static/media/icon-total-escalated.4455274904fcb4cdd8c4fd08200108b3.svg";var b=a(9431);const h=()=>{const e=(0,b.d4)(e=>e.aT.aT),t=(0,b.d4)(e=>e.tI.tenantId),[a,n]=(0,g.useState)(0),[c,d]=(0,g.useState)(0),[h,F]=(0,g.useState)(0),[x,j]=(0,g.useState)(0),[N,A]=(0,g.useState)(0);(0,g.useEffect)(()=>{I()},[]);const I=()=>u.A.getAPI({action:"dashboard",body:null,isShowError:!0,access_token:e,t_id:t}).then(e=>{n(e.result.totalUserCount),d(e.result.totalConnectorsCount),F(e.result.errorConnectorsCount),j(e.result.flaggedCount),A(e.result.escalatedCount)}).catch(e=>{});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-contetn page-review",children:[(0,i.jsx)("h2",{className:"page-title mb-4",children:"Dashboard"}),(0,i.jsxs)(s.A,{className:"row-cols-lg-3 row-cols-lg-2",children:[(0,i.jsx)(o.A,{children:(0,i.jsx)(l,{Icon:C.A,CardName:"Total Users",Count:a,bgColor:"#F2F1FF"})}),(0,i.jsx)(o.A,{children:(0,i.jsx)(l,{Icon:f,CardName:"Total Connectors",Count:c,bgColor:"#F1FBFF"})}),(0,i.jsx)(o.A,{children:(0,i.jsx)(l,{Icon:m,CardName:"Total Errors In Connectors",Count:h,bgColor:"#FAFFF1"})}),(0,i.jsx)(o.A,{children:(0,i.jsx)(l,{Icon:p,CardName:"Total Flagged",Count:x,bgColor:"#FAFFF1"})}),(0,i.jsx)(o.A,{children:(0,i.jsx)(l,{Icon:v,CardName:"Total Escalated",Count:N,bgColor:"#FAFFF1"})})]})]}),(0,i.jsx)(r.k,{page_type:"/overview"})]})}},36642(e,t,a){var s=a(50016),o=a(9431),r=a(2181),n=a(90076);a.d(t,["k",0,e=>{const t=(0,o.d4)(e=>e.uR.role);var a=(0,r.Zp)();const[c,d]=(0,s.useState)(["/overview","/connector"]),[i,l]=(0,s.useState)(["/overview","/connector","/flagging","/organization","/setting","/connectors-report"]);return(0,s.useEffect)(()=>{if("BASIC_USER"===t){if(!c.includes(e.page_type))return void a("/access-denied")}else if("ACCOUNT_ADMIN"===t){if(!i.includes(e.page_type))return void a("/access-denied")}else if("COMPLIANCE_OFFICER"===t){var s,o=atob(null!==(s=localStorage.getItem("ucd"))&&void 0!==s?s:"");if(""===o||void 0===o)return void a("/access-denied");if(!i.includes(e.page_type))return void a("/access-denied");if(i.includes(e.page_type)){var r=JSON.parse(o);if("/flagging"===e.page_type&&!r.addEditTrigers)return void a("/access-denied");if("/organization"===e.page_type&&!r.addEditUser)return void a("/access-denied")}}},[]),(0,n.jsx)(n.Fragment,{})}])}}]);
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.