1import{r as l,F as f,M as h,j as y,C as c}from"./CgBZl8m0.production.bundle.min.js";import"./CUU-sqeu.production.bundle.min.js";import{I as w,K as g}from"./CY9JcdZ7.production.bundle.min.js";import{G as q}from"./C4-6atzp.production.bundle.min.js";import{u as B}from"./BWr4BVpJ.production.bundle.min.js";import"./CHbJgqnE.production.bundle.min.js";import"./DvJkqRNe.production.bundle.min.js";import"./BTOj8ijf.production.bundle.min.js";import"./DpOFvyFl.production.bundle.min.js";import"./D4lvmK5r.production.bundle.min.js";import"./uYRgXL5M.production.bundle.min.js";import"./BS0dGend.production.bundle.min.js";import"./CMxhj3GZ.production.bundle.min.js";import"./Czbq-YEj.production.bundle.min.js";import"./BhEpiGZx.production.bundle.min.js";import"./CJLuAe4t.production.bundle.min.js";import"./Dsqj8S3w.production.bundle.min.js";import"./9zG8c1d8.production.bundle.min.js";import"./C7aKDdDU.production.bundle.min.js";import"./BOFlCg2s.production.bundle.min.js";import"./DohGM9_I.production.bundle.min.js";import"./Czj00ZrM.production.bundle.min.js";import"./vhNSgALD.production.bundle.min.js";import"./B7jgtT_H.production.bundle.min.js";import"./DV0DPFOt.production.bundle.min.js";import"./M_FBjfQJ.production.bundle.min.js";import"./BFsIcxdk.production.bundle.min.js";import"./DlG3g9Q4.production.bundle.min.js";import"./URTTg1rg.production.bundle.min.js";import"./IimQW1M7.production.bundle.min.js";import"./DuMSlPdM.production.bundle.min.js";import"./BpQvVIpM.production.bundle.min.js";import"./BZwPEnwo.production.bundle.min.js";import"./B_v3Fv2u.production.bundle.min.js";import"./CHbz8HD7.production.bundle.min.js";import"./CK-5Vo_r.production.bundle.min.js";import"./BKtnA6hw.production.bundle.min.js";import"./BaeVAzEX.production.bundle.min.js";import"./DhCfBX8j.production.bundle.min.js";import"./PSw9bd14.production.bundle.min.js";import"./BAUftK01.production.bundle.min.js";import"./CIT-tl5U.production.bundle.min.js";import"./DnFKFUTo.production.bundle.min.js";import"./CrsULzDT.production.bundle.min.js";import"./CRSxynHN.production.bundle.min.js";import"./_LyuCvYL.production.bundle.min.js";import"./DnQqxH0F.production.bundle.min.js";import"./DD3Wow16.production.bundle.min.js";const ct=()=>{var u,i;const o=B(w),n=o.inflight??!0,e=l.useMemo(()=>{var r;return(r=o.dbData)==null?void 0:r.filter(a=>a["mw.db.name"]).map(a=>a["mw.db.name"])},[o.dbData]),p={};e==null||e.forEach(r=>{p[g[r]]={"mw.db.name":{operator:f.Equal,values:[r]}}});const t=(i=(u=l.useContext(h).params.appliedFilters)==null?void 0:u["mw.db.name"])==null?void 0:i.values,m={mysql:{title:"MySQL",showByDefault:!0,filtersKeys:[{attributeKey:"mysql.instance.endpoint",showByDefault:!0,resourceType:"mysql"},{attributeKey:"mysql.db.version",showByDefault:!1,resourceType:"mysql"}]},postgresql:{title:"PostgreSQL",showByDefault:!0,filtersKeys:[{attributeKey:"postgresql.database.name",showByDefault:!0,resourceType:"postgresql"},{attributeKey:"postgresql.db.version",showByDefault:!1,resourceType:"postgresql"},{attributeKey:"postgresql.table.name",showByDefault:!1,resourceType:"postgresql"},{attributeKey:"postgresql.schema.name",showByDefault:!1,resourceType:"postgresql"},{attributeKey:"postgresql.index.name",showByDefault:!1,resourceType:"postgresql"}]},mongodb:{title:"MongoDB",showByDefault:!0,filtersKeys:[{attributeKey:"mongodb.database.name",showByDefault:!0,resourceType:"mongodb"}]}},s=[{title:"Core",showByDefault:!0,filtersKeys:[{attributeKey:"Database Types",showByDefault:!0,staticValues:p},{attributeKey:"os.type",showByDefault:!0,resourceType:e==null?void 0:e.filter(r=>t!=null&&t[0]?r===(t==null?void 0:t[0]):!0)}]},{title:"Host",showByDefault:!0,filtersKeys:[{attributeKey:"host.id",showByDefault:!0,resourceType:e==null?void 0:e.filter(r=>t!=null&&t[0]?r===(t==null?void 0:t[0]):!0)}]}];return t?t==null||t.forEach(r=>{s.push(m[r])}):e==null||e.forEach(r=>{s.push(m[r])}),n?y.jsx(c,{}):y.jsx(q,{caller:"apm-db",resource:(t==null?void 0:t[0])??(e==null?void 0:e[0])??"mysql",extraResources:e,groups:s})};export{ct as default};
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.