PageSourceSearch

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

js middleware.io collected 2026-10-02 03:34:54 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"./CZzrexQa.production.bundle.min.js";import{B as c}from"./YCM_kEyP.production.bundle.min.js";import{U as C}from"./C_cH1u9D.production.bundle.min.js";import{T as h}from"./kkIr59yR.production.bundle.min.js";import{u as g,at as n,q as I,au as O,av as q}from"./DeceMiF-.production.bundle.min.js";import{u as v,s as R}from"./9eHdvLN4.production.bundle.min.js";import{G as E}from"./CJIgguc4.production.bundle.min.js";import{P as w,D as b}from"./CHClG9UV.production.bundle.min.js";/* empty css                              */import{P as L,L as B}from"./3wIbuO__.production.bundle.min.js";import{D as M,c as N}from"./CUZmxn9S.production.bundle.min.js";import"./DGYQp8fe.production.bundle.min.js";import"./DGAisTA8.production.bundle.min.js";import"./E6csxmgU.production.bundle.min.js";import"./D8sKcCdJ.production.bundle.min.js";import"./BmBjCq8D.production.bundle.min.js";import"./Dsqj8S3w.production.bundle.min.js";import"./tkddr5kZ.production.bundle.min.js";import"./Bm1LOIPR.production.bundle.min.js";import"./DtpVAsok.production.bundle.min.js";import"./2mZBARql.production.bundle.min.js";import"./vhNSgALD.production.bundle.min.js";import"./D4lvmK5r.production.bundle.min.js";import"./DFn2u8qh.production.bundle.min.js";import"./DWUNlcjA.production.bundle.min.js";import"./Ci_hGDFV.production.bundle.min.js";import"./b2Mkg01q.production.bundle.min.js";import"./DwmhJbxl.production.bundle.min.js";import"./D-90pMQ7.production.bundle.min.js";import"./DvLd3evF.production.bundle.min.js";import"./B0uEge7d.production.bundle.min.js";import"./DQegFpUo.production.bundle.min.js";import"./D0x1Z4HE.production.bundle.min.js";import"./Y4Ob0Is8.production.bundle.min.js";import"./oN3AJijl.production.bundle.min.js";import"./CXT9N8xZ.production.bundle.min.js";import"./C_Ln3svq.production.bundle.min.js";import"./7LcJfZNO.production.bundle.min.js";import"./CNsPFEJO.production.bundle.min.js";import"./CiD4UJCU.production.bundle.min.js";import"./CpVN2k6O.production.bundle.min.js";import"./B7Fri_dM.production.bundle.min.js";import"./CLBsRoPD.production.bundle.min.js";import"./Ch78CD0x.production.bundle.min.js";import"./D1TNtnEv.production.bundle.min.js";import"./DnQqxH0F.production.bundle.min.js";import"./zzLyrqbE.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.