PageSourceSearch

https://app.middleware.io/static/B1BfON0k.production.bundle.min.js

js middleware.io collected 2026-09-24 18:01:42 UTC 5,372 bytes, 1 lines download raw bytes

1import{r as a,b as V,d as D,R as p,M as U,j as i,C as P}from"./CgBZl8m0.production.bundle.min.js";import{A as K}from"./DD3Wow16.production.bundle.min.js";import{c7 as B,cb as G,bo as W}from"./CY9JcdZ7.production.bundle.min.js";import{u as Y}from"./CUU-sqeu.production.bundle.min.js";import{A as $}from"./Ez20jh4A.production.bundle.min.js";import{P as z}from"./CMxhj3GZ.production.bundle.min.js";import{M as g}from"./Dr4sEme0.production.bundle.min.js";import{u as H}from"./BWr4BVpJ.production.bundle.min.js";import{U as J,M as Q}from"./BFsIcxdk.production.bundle.min.js";import"./CRSxynHN.production.bundle.min.js";import"./DV0DPFOt.production.bundle.min.js";import"./BTOj8ijf.production.bundle.min.js";import"./D4lvmK5r.production.bundle.min.js";import"./BOFlCg2s.production.bundle.min.js";import"./BhEpiGZx.production.bundle.min.js";import"./CJLuAe4t.production.bundle.min.js";import"./CHbJgqnE.production.bundle.min.js";import"./Dsqj8S3w.production.bundle.min.js";import"./BZwPEnwo.production.bundle.min.js";import"./uYRgXL5M.production.bundle.min.js";import"./BS0dGend.production.bundle.min.js";import"./Czbq-YEj.production.bundle.min.js";import"./9zG8c1d8.production.bundle.min.js";import"./C7aKDdDU.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"./M_FBjfQJ.production.bundle.min.js";import"./DlG3g9Q4.production.bundle.min.js";import"./DuMSlPdM.production.bundle.min.js";import"./DpOFvyFl.production.bundle.min.js";import"./URTTg1rg.production.bundle.min.js";import"./IimQW1M7.production.bundle.min.js";import"./BpQvVIpM.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"./DvJkqRNe.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"./_LyuCvYL.production.bundle.min.js";import"./DnQqxH0F.production.bundle.min.js";const X={status:!0,type:!0,created_by:!0,tags:!0,selection_method:!0},Z={Critical:"var(--color-error)",Warning:"var(--color-warning)",Ok:"var(--color-success)","No Data":"var(--color-neutrals-400)","No Alert":"var(--color-neutrals-600)",Ended:"var(--color-secondary)",Active:"var(--color-success)"},ee=300,M=a.memo(({className:_=""})=>{const A=Y(),f=V(),y=D(),s=p.useContext(U),C=a.useRef(!0),[E,x]=p.useState(!1),[m,h]=p.useState({}),[k,N]=p.useState(X),[d,T]=p.useState(""),c=H(B);a.useEffect(()=>{(()=>{if(s.params.query){const t={};Object.keys(g).forEach(o=>{const r=s.params.query.get(o);r!=null&&r.length&&(t[o]=r.split(","))}),h(t)}})(),x(!0),A(G({},()=>x(!1)))},[A,s.params.query]);const I=a.useCallback(e=>{let t=!1;const o=parseInt(s.params.query.get("page")||"1");Object.keys(g).forEach(r=>{var u;const l=s.params.query.get(r),n=((u=e[r])==null?void 0:u.join(","))||"";l!==n&&(t=!0,n?s.params.query.set(r,n):s.params.query.delete(r))}),t&&(o>1&&s.params.query.set("page","1"),s.params.query.redirect(),f({pathname:y.pathname,search:s.params.query.toString()},{replace:!0}))},[]);a.useEffect(()=>{if(C.current){C.current=!1;return}const e=setTimeout(()=>I(m),ee);return()=>clearTimeout(e)},[m]),a.useEffect(()=>()=>{Object.keys(g).forEach(e=>{s.params.query.delete(e)}),s.params.query.delete("page"),s.params.query.redirect()},[]);const L=a.useCallback((e,t,o)=>{const r=e.itemKey||t,l=e.key;l&&h(n=>{if(r==="muted"){if(o)return{...n,[r]:[l]};{const{[r]:b,...S}=n;return S}}const u=n[r]||[],q=o?Array.from(new Set([...u,l])):u.filter(b=>b!==l);if(!q.length){const{[r]:b,...S}=n;return S}return{...n,[r]:q}})},[]),F=a.useCallback(()=>{h({}),s.params.query.set("page","1"),f({pathname:y.pathname,search:""},{replace:!0})},[y.pathname,f,s.params.query]),w=a.useCallback(e=>{T(e)},[]),O=a.useCallback(e=>{const t=Z[e];return t?i.jsx(W,{color:t}):void 0},[]),j=a.useMemo(()=>Array.isArray(c)?c.filter(e=>!["Maintenance","Triggered At"].includes(e.title)):[],[c]);a.useMemo(()=>Array.isArray(c)?c.filter(e=>!["Maintenance","Triggered At"].includes(e.title)):[],[c]);const v=j,R=a.useMemo(()=>j.map(e=>({title:e.title,items:e.values.filter(t=>t.id&&t.label).filter(t=>d?t.label.toLowerCase().includes(d.toLowerCase()):!0).map(t=>{var o;
1return{title:t.label,key:t.id.toString()??"",isChecked:((o=m[e.key])==null?void 0:o.includes(t.id.toString()))||!1,prefixIcon:e.title==="Status"?O(t.label):e.title==="Muted"?t.label==="True"?i.jsx(J,{}):i.jsx(Q,{}):void 0,type:K.Checkbox,itemKey:e.key}}),isActive:k[e.key],onItemClick:()=>N(t=>({...t,[e.key]:!t[e.key]}))})),[v,m,k,d]);return E?i.jsx(P,{}):i.jsx("div",{className:`rules_side-panel ${_}`.trim(),children:i.jsx("div",{className:"sidebar__menu",children:i.jsx("div",{className:"sidebar__menu_wrapper",children:i.jsx("div",{className:"sidebar_options",children:i.jsx("div",{className:"sidebar-menu--wrapper",children:i.jsx($,{data:R,handleSearch:w,searchValue:d,handleOnCheckboxClick:L,clearAll:F})})})})})})});M.propTypes={className:z.string};M.displayName="Sidebar";export{M 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.