1"use strict";(self.webpackChunkwanda=self.webpackChunkwanda||[]).push([[3178],{73445:(e,t,n)=>{n.r(t),n.d(t,{default:()=>L});var a=n(30760),r=n(55658),i=n(27378),s=n(91286),l=n(56166),o=n(4082),c=n(74490),u=n(25066),d=n(90948),f=n(17043),m=n(50758),p=n(93165),h=n(39071),g=n(35233),v=n(56960),b=n(45483),y=n(35508),x=n(64822),j=n(52172),w=n(38365),O=n(20620),S=n(99364),C=n(24246);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Z="DataStore",E=(0,c.BX)("\n query DataStoreAccessLogsConnection(\n $ids: [ID!]!\n $pagination: Pagination!\n $filters: [AccessLogFilterInput!]\n ) {\n getDataStore(ids: $ids) {\
1n id\n accessLogsConnection(filters: $filters, pagination: $pagination) {\n edges {\n node {\n __typename\n ...DataStoreAccessLogConnectionFragment\n }\n }\n maxOffset\n }\n }\n }\n"),T=[h.OM,h.Sl].map(b._);function L(e){let{dataStoreId:t,dataStoreType:n,filters:h,initialPage:b=1}=e;const{pageNumber:P,updatePageNumber:N,pagination:L}=(0,f.ZP)({initialPage:b,customSearchParamKey:"datastoreAccessLogsPageNumber"}),{FilterProvider:W,selectedData:I}=(0,m.rh)({baseFilters:null!=h&&h.length?h:T,selector:(0,m.ds)()}),{value:k=!1}=(0,v.ye)("customAccessLogView",!1),{value:z=!1}=(0,v.ye)("access-activity-with-role-chain",!1),A=(0,i.useMemo)((()=>(0,o.i)(Z,k,z,n?{id:t,dataStoreType:n}:void 0)),[k,z,t,n]),M=(0,i.useMemo)((()=>(0,g.w)(A,n)),[A,n]),q=(0,i.useMemo)((()=>({ids:[t],filters:I.filter((e=>!M.has(e.id))),pagination:L})),[t,I,M,L]),B=function(e){const{activityLogsEnabled:t}=(0,O.oe)(),{data:n}=(0,a.kJ)(E,t?{variables:e}:r.C);return(0,i.useMemo)((()=>t?(0,u.Z)(null==n?void 0:n.getDataStore[0],"getSingleDataStore is empty"):j.T),[n,t])}(q),F=B.accessLogsConnection.edges.map((e=>{let{node:t}=e;return t})).filter((0,d.q)("DataStoreAccessLog")).map((e=>{var t;const n=(0,c.dx)(x.d,e);return D(D({},n),{},{accessChain:null===(t=n.accessChain)||void 0===t?void 0:t.map((e=>{let{id:t,name:n,principalType:a}=e;return{id:t,name:n,principalType:a}}))})})),X=(0,C.jsx)(y.Z,{reportName:"Data Exposure",query:E,columns:A,color:"secondary",getRowData:e=>(0,u.Z)(e.getDataStore[0]).accessLogsConnection.edges.map((e=>{let{node:t}=e;return t})).filter((0,d.q)("DataStoreAccessLog")).map((e=>{var t;const n=(0,c.dx)(x.d,e);return D(D({},n),{},{accessChain:null===(t=n.accessChain)||void 0===t?void 0:t.map((e=>{let{id:t,name:n,principalType:a}=e;return{id:t,name:n,principalType:a}}))})})),variables:q,maxOffset:B.accessLogsConnection.maxOffset}),{maxOffset:R}=B.accessLogsConnection,{visibleColumns:$,columnsSelectorBtn:_}=(0,w.t)({columns:A,saveViewWithId:"DataStoreAccessActivity"});return(0,C.jsx)(S.default,{feature:"activityLogsEnabled",children:(0,C.jsx)(W,{children:(0,C.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,C.jsx)(p.J,{filterObjectType:"access",hiddenOptions:M,rightActions:(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[_," ",X]})}),(0,C.jsx)(l.Z,{offset:L.offset,numResults:F.length,outOf:R}),(0,C.jsx)(o.Z,{data:(0,u.Z)(F,"Failed to find access logs for dataStoreId: ".concat(t)),type:Z,columnDefinitions:$}),R&&R>L.limit?(0,C.jsx)(s.Z,{page:P,setPage:N,pagesCount:Math.ceil(R/L.limit)}):null]})})})}},69243:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(98784),r=n(24246);function i(e){let{value:t,indices:n,highlightedClassName:a,i:s=1}=e;const l=n[n.length-s];return l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i,{value:t.substring(0,l[0]),indices:n,highlightedClassName:a,i:s+1}),(0,r.jsx)("span",{className:a,children:t.substring(l[0],l[1]+1)}),(0,r.jsx)("span",{children:t.substring(l[1]+1)})]}):(0,r.jsx)("span",{children:t})}function s(e){const t=(0,a.maxBy)(e,(e=>{let[t,n]=e;return n-t}));return t?[t]:[]}function l(e){let{value:t,indices:n,highlightedClassName:a,highlightAllMatches:l=!1}=e;return(0,r.jsx)(i,{value:t,indices:l?n:s(n),highlightedClassName:a})}},11641:(e,t,n)=>{n.d(t,{Z:()=>P,o:()=>C});var a=n(27378),r=n(97276),i=n(40624),s=n(41507),l=n(17679),o=n(41532),c=n(50848),u=n(29133),d=n(14935),f=n(22640),m=n(67147),p=n(69243),h=n(25066),g=n(89367),v=n(24246);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
1const j={"4xl":"max-w-4xl",full:"max-w-full"},w=[];function O(e){let{entry:t,match:n,customLabelDisplay:a}=e;const r=null==a?void 0:a(t);return(0,v.jsx)(s.h.Option,{value:t,className:"group",children:e=>{var a,s;let{active:o}=e;return(0,v.jsxs)("div",{className:(0,i.W)("flex cursor-pointer items-center gap-2 py-1.5 group-hover:text-steel-900",o?(0,m.zX)(900,"white"):(0,m.zX)(500,500)),children:[(0,v.jsx)(l.Z,{className:(0,i.W)("h-3 w-3",(0,m.zX)(500,500))}),r?(0,v.jsx)("span",{children:r}):null,(0,v.jsx)("span",{children:(0,v.jsx)(p.Z,{highlightedClassName:"underline",value:null!==(a=null==n?void 0:n.value)&&void 0!==a?a:t.label,indices:null!==(s=null==n?void 0:n.indices)&&void 0!==s?s:w})})]})}})}function S(e){let{referenceElement:t,title:n,children:l}=e;const[o,c]=(0,a.useState)(null),{styles:u,attributes:d}=(0,r.D)(t,o,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]});return(0,v.jsx)("div",y(y({ref:c,style:u.popper},d.popper),{},{className:"z-20",children:(0,v.jsxs)(s.h.Options,{as:"ul",static:!0,className:(0,i.W)("relative flex w-full flex-col rounded border text-xs shadow",(0,m.tW)("white",1e3),(0,m.xE)(200,700),"px-4 py-3"),children:[n?(0,v.jsx)(s.h.Option,{disabled:!0,as:"li",value:"__title",className:(0,i.W)("py-1.5 text-xs font-bold",(0,m.zX)(900,100)),children:n}):null,l]})}))}function C(e){let{query:t,findMatchingEntries:n,delay:r=0,maxSuggestions:i=10}=e;const s=(0,o.Z)(t,{wait:r,trailing:!0,maxWait:r});return(0,a.useMemo)((()=>s?n(s).slice(0,i):null),[s,i,n])}function P(e){var t;let{placeholder:n,size:r="sm",findMatchingEntries:o,defaultSuggestions:p,onEntrySelection:b,title:y,delay:x=0,color:w="info",maxSuggestions:P=10,onClear:D,noResultsMessage:N,disabled:Z=!1,typeaheadRef:E,shouldClearAfterSelections:T=!0,customLabelDisplay:L,loading:W=!1,defaultValue:I,maxSize:k="4xl"}=e;const[z,A]=(0,a.useState)(null!==(t=null==I?void 0:I.label)&&void 0!==t?t:""),M=(0,d.TH)();(0,c.Z)((()=>{A("")}),[M]);const q=C({query:z,findMatchingEntries:o,delay:x,maxSuggestions:P}),B=(0,a.useRef)(null),[F,X]=(0,a.useState)(null);(0,a.useImperativeHandle)(E,(()=>F),[F]);const R=Boolean((0,u.Z)(B)&&(z.length?q:p));return(0,v.jsxs)("div",{ref:B,className:(0,i.W)("relative w-full",j[k]),children:[(0,v.jsxs)(s.h,{defaultValue:I,disabled:Z,onChange:e=>{b(e),T?(A(""),D&&D()):A(e.label),setTimeout((()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}))},children:[(0,v.jsx)(s.h.Input,{ref:X,as:g.oi,onChange:e=>{A(e.target.value)},icon:(0,v.jsx)(l.Z,{className:"h-4 w-4"}),autoComplete:"off",value:z,placeholder:n,size:r,color:w}),R&&!W?(0,v.jsxs)(S,{referenceElement:F,title:y?y({count:null==q?void 0:q.length,searchQuery:z}):"",children:[!z&&p?p.map((e=>(0,v.jsx)(O,{entry:e},e.label))):(0,h.Z)(q).map((e=>{var t;return(0,v.jsx)(O,{entry:e.item,match:null===(t=e.matches)||void 0===t?void 0:t[0],customLabelDisplay:L},"".concat(e.item.label," ").concat(e.refIndex))})),!z||q&&0!==q.length||!N?null:(0,v.jsx)("p",{className:(0,i.W)("text-xs font-medium italic",(0,m.zX)(800,200)),children:N})]}):null]}),D&&z?(0,v.jsx)("button",{className:"clickable absolute right-0 top-0 z-20 flex h-full items-center px-4",onClick:()=>{D(),A("")},children:(0,v.jsx)(f.Z,{className:(0,i.W)("h-4 w-4 stroke-3",(0,m.zX)(800,200))})}):null]})}},54471:(e,t,n)=>{n.d(t,{Z:()=>f,q:()=>m});var a=n(28957),r=n(39627),i=n(43743),s=n(67147),l=n(13834),o=n(61334),c=n(81433),u=n(55893),d=n(24246);function f(e){let{id:t,name:n,dataStoreType:r,filters:i,iterableId:s,tab:u=c.Kj.Contents,searchFilter:f,searchType:m,isDeleted:p,readonly:h=!1}=e;return(0,d.jsx)(a.Z,{fontBold:"bold",name:n,icon:h?void 0:(0,d.jsx)(o.Z,{dataStoreType:r}),to:p||h?void 0:(0,l.Co)({id:t,kind:"datastore",tab:u,filters:i,searchFilter:f,searchType:m}),state:{fromSearch:!0},iterableId:s,allowWrap:!1})}function m(e){let{id:t,name:n,dataStoreType:a,iterableId:o,isDeleted:m,showParent:p,parentDatastore:h,readonly:g=!1}=e;const{Icon:v,needsEnlargening:b}=r.mf[a],y=m?void 0:(0,l.Co)({id:t,kind:"dataset",tab:c.dH.Details}),x=(0,d.jsx)(i.Ct,{size:b?"mdPlus":"md",withBorder:!1,bgClassName:(0,s.Am)(100),icon:v,badgeShape:"square"});return p&&h?(0,d.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,d.jsx)(f,{id:h.id,name:h.name,dataStoreType:h.dataStoreType,readonly:!0}),(0,d.jsx)("span",{className:"text-gray-500",children:"/"}),(0,d.jsx)("div",{className:"w-full max-w-md",children:(0,d.jsx)(u.Z,{fontBold:"bold",name:n,icon:g?void 0:x,to:g?void 0:y,state:{fromSearch:!0},iterableId:o,allowWrap:!1})})]}):(0,d.jsx)(u.Z,{fontBold:"bold",name:n,icon:g?void 0:x,to:g?void 0:y,state:{fromSearch:!0},iterableId:o,fullWidth:!1})}},30096:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(40624),r=n(67147),i=n(24246);function s(e){let{children:t,allowWrap:n=!0,withEllipsis:s=!1,textClassName:l}=e;return(0,i.jsx)("span",{className:(0,a.W)("text-sm font-medium",{"whitespace-nowrap":!n,"block max-w-full truncate":s},null!=l?l:(0,r.zX)(600,200)),children:t})}},15332:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(98784),r=n(27378);function i(e){const t=(0,r.useRef)(e);return(0,a.isEqual)(e,t.current)?t.current:t.current=e}}}]);
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.