PageSourceSearch

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

js middleware.io collected 2026-09-24 18:02:10 UTC 4,294 bytes, 1 lines download raw bytes

1import{r as d,M as k,b as P,j as r,R as T}from"./CgBZl8m0.production.bundle.min.js";import{B as c}from"./B7jgtT_H.production.bundle.min.js";import{U as C}from"./uYRgXL5M.production.bundle.min.js";import{T as h}from"./BhEpiGZx.production.bundle.min.js";import{u as g,at as n,q as I,au as O,av as q}from"./CY9JcdZ7.production.bundle.min.js";import{u as v,s as R}from"./CUU-sqeu.production.bundle.min.js";import{G as E}from"./PSw9bd14.production.bundle.min.js";import{P as w,D as b}from"./CHbJgqnE.production.bundle.min.js";/* empty css                              */import{P as L,L as B}from"./9zG8c1d8.production.bundle.min.js";import{D as M,c as N}from"./BFsIcxdk.production.bundle.min.js";import"./BTOj8ijf.production.bundle.min.js";import"./BS0dGend.production.bundle.min.js";import"./CMxhj3GZ.production.bundle.min.js";import"./Czbq-YEj.production.bundle.min.js";import"./CJLuAe4t.production.bundle.min.js";import"./Dsqj8S3w.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"./D4lvmK5r.production.bundle.min.js";import"./DV0DPFOt.production.bundle.min.js";import"./M_FBjfQJ.production.bundle.min.js";import"./DlG3g9Q4.production.bundle.min.js";import"./DpOFvyFl.production.bundle.min.js";import"./URTTg1rg.production.bundle.min.js";import"./IimQW1M7.production.bundle.min.js";import"./BWr4BVpJ.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"./DvJkqRNe.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"./BAUftK01.production.bundle.min.js";const u=[{index:0,link:"/dashboards"},{index:1,link:"/dashboards/explorer"},{index:2,link:"/dashboards/notebooks"}];function Er(){const e=d.useContext(k),t=g()(w.WriteDashboards),[s,i]=d.useState({type:n.Create,isOpen:!1}),x=P(),m=e.params.query.get("build-dashboard"),f=v();d.useEffect(()=>{m&&(t?i({type:n.Create,isOpen:!0}):f(R("error","Please contact your admin to create team",{title:"Permission denied"})),e.params.query.delete("build-dashboard"),e.params.query.redirect())},[m]);let o=0;u.find(a=>{location.pathname.includes(a.link)&&(o=a.index)});const y=a=>{const l=u.find(j=>j.index===a);l&&x(l.link)},p=a=>{if(a===o)return"var(--color-primary)"},D=[{title:"Dashboards",prefixicon:r.jsx(B,{color:p(0)})},{title:"Explorer",prefixicon:r.jsx(M,{color:p(1)})},{title:"Notebooks",prefixicon:r.jsx(N,{color:p(2)})}];return r.jsxs(T.Fragment,{children:[r.jsx(I,{tabs:D,activeTabIndex:o,onTabChange:a=>{y(a)},showLiveOrHistoryToggle:o!=0,showRefreshBtn:o!=0,showDatePicker:o!=0,extraChildren:o==0&&r.jsxs(r.Fragment,{children:[r.jsx(h,{content:!t&&b,children:r.jsx("div",{children:r.jsx(c,{secondary:!0,prefixicon:r.jsx(L,{color:"var(--color-primary)"}),onClick:()=>i({type:n.Create,isOpen:!0}),disabled:!t,children:"Create Dashboard"})})}),r.jsx(h,{content:!t&&b,children:r.jsx("div",{children:r.jsx(c,{prefixicon:r.jsx(C,{size:18,color:"var(--color-text)"}),onClick:()=>i({type:n.Import,isOpen:!0}),disabled:!t,children:"Upload Dashboard"})})})]}),dataTestIdDatePicker:"header-datepicker-dashboard-list"}),s.isOpen&&r.jsx(E,{isOpen:!0,size:"xxs",title:`${s.type} Dashboard`,datePicker:!1,onClose:()=>{e.params.query.has("build-dashboard")&&(e.params.query.delete("build-dashboard"),e.params.query.redirect()),i({...s,isOpen:!1})},dataTestIdDatePicker:"panel-datepicker-dashboard-list",children:r.jsx(O,{type:s.type,dashboardType:q.ReportBased,onClose:()=>{e.params.query.has("build-dashboard")&&(e.params.query.delete("build-dashboard"),e.params.query.redirect()),i({...s,isOpen:!1})}})})]})}export{Er 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.