"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[8808],{56430:(F,M,t)=>{t.d(M,{p:()=>$});var r=t(42844),e=t(27702),l=t(34667),b=t(66310),y=t(73453),h=t(9848),v=t(59307),u=t(56983),i=t(53933),I=t(13741),p=t(66670),g=t(51214),o=t(18167),U=t(75766),d=t(34099);const R={loadingState:i.Gu.Loading,dashboardTitles:[]},N=(0,d.PH)("libraryPanels/delete/searchCompleted"),G=(n=R,D)=>N.match(D)?{...n,dashboardTitles:D.payload.dashboards.map(B=>B.title),loadingState:i.Gu.Done}:n;function f(n){return async function(D){const B=await(0,U.E8)(n.uid);D(N({dashboards:B}))}}const L=({libraryPanel:n,onDismiss:D,onConfirm:B})=>{const J=(0,b.wW)(g.J),[{dashboardTitles:z,loadingState:K},j]=(0,e.useReducer)(G,R),V=(0,e.useMemo)(()=>(0,o.tb)(j),[j]);(0,e.useEffect)(()=>{V(f(n))},[V,n]);const H=!!z.length,Q=K===i.Gu.Done;return e.createElement(I.u,{className:J.modal,title:"Delete library panel",icon:"trash-alt",onDismiss:D,isOpen:!0},Q?null:e.createElement(W,null),Q?e.createElement("div",null,H?e.createElement(C,{dashboardTitles:z}):null,H?null:e.createElement(m,null),e.createElement(I.u.ButtonRow,null,e.createElement(p.zx,{variant:"secondary",onClick:D,fill:"outline"},"Cancel"),e.createElement(p.zx,{variant:"destructive",onClick:B,disabled:H},"Delete"))):null)},W=()=>e.createElement("span",null,"Loading library panel..."),m=()=>{const n=(0,b.wW)(g.J);return e.createElement("div",{className:n.modalText},"Do you want to delete this panel?")},C=({dashboardTitles:n})=>{const D=(0,b.wW)(g.J),B=n.length===1?"dashboard.":"dashboards.",J=`${n.length} ${B}`;return n.length===0?null:e.createElement("div",null,e.createElement("p",{className:D.textInfo},"This library panel can not be deleted because it is connected to ",e.createElement("strong",null,J)," Remove the library panel from the dashboards listed below and retry."),e.createElement("table",{className:D.myTable},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"Dashboard name"))),e.createElement("tbody",null,n.map((z,K)=>e.createElement("tr",{key:`dash-title-${K}`},e.createElement("td",null,z))))))},$=({libraryPanel:n,onClick:D,onDelete:B,showSecondaryActions:J})=>{const[z,K]=(0,e.useState)(!1),j=()=>{B?.(n),K(!1)},V=l.config.panels[n.model.type]??(0,v.X)(n.model.type).meta;return e.createElement(e.Fragment,null,e.createElement(u.X,{isCurrent:!1,title:n.name,description:n.description,plugin:V,onClick:()=>D?.(n),onDelete:J?()=>K(!0):void 0},e.createElement(x,{libraryPanel:n})),z&&e.createElement(L,{libraryPanel:n,onConfirm:j,onDismiss:()=>K(!1)}))};function x({libraryPanel:n}){const D=(0,b.wW)(T);return!n.meta?.folderUid&&!n.meta?.folderName?null:n.meta.folderUid?e.createElement("span",{className:D.metaContainer},e.createElement(h.r,{href:`/dashboards/f/${n.meta.folderUid}`},e.createElement(y.J,{name:"folder-upload",size:"sm"}),e.createElement("span",null,n.meta.folderName))):e.createElement("span",{className:D.metaContainer},e.createElement(y.J,{name:"folder",size:"sm"}),e.createElement("span",null,n.meta.folderName))}function T(n){return{metaContainer:(0,r.css)`
      display: flex;
      align-items: center;
      color: ${n.colors.text.secondary};
      font-size: ${n.typography.bodySmall.fontSize};
      padding-top: ${n.spacing(.5)};

      svg {
        margin-right: ${n.spacing(.5)};
        margin-bottom: 3px;
      }
    `}}},18167:(F,M,t)=>{t.d(M,{UO:()=>N,Xu:()=>R,tb:()=>G});var r=t(19973),e=t(91053),l=t(45383),b=t(6857),y=t(80852),h=t(22479),v=t(56469),u=t(90581),i=t(32900),I=t(58885),p=t(24321),g=t(34667),o=t(17112),U=t(75766),d=t(58300);function R(f){const L=(m,C)=>m.id===C.type,W=(m,C)=>{const $=(0,o.xW)();return m.filter(x=>{const T=$.find(n=>L(n,x));return C?!!T?.skipDataQuery:!T?.skipDataQuery})};return function(m){const C=new r.w0,$=(0,e.D)((0,U.Pq)({searchString:f.searchString,perPage:f.perPage,page:f.page,excludeUid:f.currentPanelId,sortDirection:f.sortDirection,typeFilter:f.panelFilter,folderFilterUIDs:f.folderFilterUIDs})).pipe((0,h.z)(x=>{const{elements:T}=x;if(g.config.featureToggles.vizAndWidgetSplit&&f.isWidget!==void 0){const n=W(T,f.isWidget);return(0,l.of)({...x,elements:n})}return(0,l.of)({...x,elements:T})}),(0,h.z)(({perPage:x,elements:T,page:n,totalCount:D})=>(0,l.of)((0,d.zK)({libraryPanels:T,page:n,perPage:x,totalCount:D}))),(0,v.K)(x=>(console.error(x),(0,l.of)((0,d.zK)({...d.p$,page:f.page,perPage:f.perPage})))),(0,u.x)(()=>C.unsubscribe()),(0,i.B)());C.add((0,b.T)((0,y.H)(50).pipe((0,I.h)((0,d.xU)()),(0,p.R)($)),$).subscribe(m))}}function N(f,L){return async function(W){try{await(0,U.UO)(f),R(L)(W)}catch(m){console.error(m)}}}function G(f){return function(L){return L instanceof Function?L(f):f(L)}}},58300:(F,M,t)=>{t.d(M,{_p:()=>v,oO:()=>h,p$:()=>l,xU:()=>b,zK:()=>y});var r=t(34099),e=t(53933);const l={loadingState:e.Gu.Loading,libraryPanels:[],totalCount:0,perPage:40,page:1,numberOfPages:0,currentPanelId:void 0},b=(0,r.PH)("libraryPanels/view/initSearch"),y=(0,r.PH)("libraryPanels/view/searchCompleted"),h=(0,r.PH)("libraryPanels/view/changePage"),v=(u,i)=>{if(b.match(i))return{...u,loadingState:e.Gu.Loading};if(y.match(i)){const{libraryPanels:I,page:p,perPage:g,totalCount:o}=i.payload,U=Math.ceil(o/g);return{...u,libraryPanels:I,perPage:g,totalCount:o,loadingState:e.Gu.Done,numberOfPages:U,page:p>U?p-1:p}}return h.match(i)?{...u,page:i.payload.page}:u}},51214:(F,M,t)=>{t.d(M,{J:()=>e});var r=t(42844);function e(l){return{myTable:(0,r.css)`
      max-height: 204px;
      overflow-y: auto;
      margin-top: 11px;
      margin-bottom: 28px;
      border-radius: ${l.shape.borderRadius(1)};
      border: 1px solid ${l.colors.action.hover};
      background: ${l.colors.background.primary};
      color: ${l.colors.text.secondary};
      font-size: ${l.typography.h6.fontSize};
      width: 100%;

      thead {
        color: #538ade;
        font-size: ${l.typography.bodySmall.fontSize};
      }

      th,
      td {
        padding: 6px 13px;
        height: ${l.spacing(4)};
      }

      tbody > tr:nth-child(odd) {
        background: ${l.colors.background.secondary};
      }
    `,noteTextbox:(0,r.css)`
      margin-bottom: ${l.spacing(4)};
    `,textInfo:(0,r.css)`
      color: ${l.colors.text.secondary};
      font-size: ${l.typography.size.sm};
    `,dashboardSearch:(0,r.css)`
      margin-top: ${l.spacing(2)};
    `,modal:(0,r.css)`
      width: 500px;
    `,modalText:(0,r.css)`
      font-size: ${l.typography.h4.fontSize};
      color: ${l.colors.text.primary};
      margin-bottom: ${l.spacing(4)};
      padding-top: ${l.spacing(2)};
    `}}},40599:(F,M,t)=>{t.r(M),t.d(M,{default:()=>be});var r=t(42844),e=t(27702),l=t(27173),b=t(3935),y=t(53933),h=t(74639),v=t(86312),u=t(34667),i=t(79399),I=t(23839),p=t(22209),g=t(1128),o=t(66670),U=t(60105),d=t(64022),R=t(62108),N=t(66310),G=t(80402),f=t(5933),L=t(44644),W=t(92071),m=t(60956),C=t(26129),$=t(12375),x=t(77799),T=t(91399),n=t(42751),D=t(16310),B=t(41482),J=t(53229),z=t(73289),K=t(39345);const j=s=>{let a;try{a=JSON.parse(s)}catch{return"Not valid JSON"}if(a&&a.hasOwnProperty("tags"))if(Array.isArray(a.tags)){if(a.tags.some(c=>typeof c!="string"))return"tags expected array of strings"}else return"tags expected array";return!0},V=s=>{const a=/(^\d+$)|dashboards\/(\d+)/.exec(s);return a&&(a[1]||a[2])?!0:"Could not find a valid Grafana.com ID"},H=(s,a)=>K.t.validateNewDashboardName(a,s).then(()=>!0).catch(O=>{if(O.type==="EXISTING")return O.message}),Q=s=>(0,z.i)().get(`/api/dashboards/uid/${s}`).then(a=>`Dashboard named '${a?.dashboard.title}' in folder '${a?.meta.folderTitle}' has the same UID`).catch(a=>(a.isHandled=!0,!0));var re=t(56430);function te({inputs:s,label:a,description:O,folderName:c}){const S=(0,N.wW)(se);return s?.length?e.createElement("div",{className:S.spacer},e.createElement(p.g,{label:a,description:O},e.createElement(e.Fragment,null,s.map((E,X)=>{const w=`elements[${X}]`,Y=E.state===T.KQ.New?{...E.model,meta:{...E.model.meta,folderName:c??"General"}}:{...E.model};return e.createElement("div",{className:S.item,key:w},e.createElement(re.p,{libraryPanel:Y,onClick:()=>{}}))})))):null}function se(s){return{spacer:(0,r.css)`
      margin-bottom: ${s.spacing(2)};
    `,item:(0,r.css)`
      margin-bottom: ${s.spacing(1)};
    `}}const le=({register:s,errors:a,control:O,getValues:c,uidReset:S,inputs:E,initialFolderUid:X,onUidReset:w,onCancel:Y,onSubmit:k,watch:q})=>{const[_,Pe]=(0,e.useState)(!1),Ie=q("dataSources"),oe=q("folder");(0,e.useEffect)(()=>{_&&(a.title||a.uid)&&k(c(),{})},[a,c,_,k]);const xe=E?.libraryPanels?.filter(P=>P.state===T.KQ.New)??[],Oe=E?.libraryPanels?.filter(P=>P.state===T.KQ.Exists)??[];return e.createElement(e.Fragment,null,e.createElement($.D,null,"Options"),e.createElement(p.g,{label:"Name",invalid:!!a.title,error:a.title&&a.title.message},e.createElement(g.I,{...s("title",{required:"Name is required",validate:async P=>await H(P,c().folder.uid)}),type:"text","data-testid":h.wl.components.ImportDashboardForm.name})),e.createElement(p.g,{label:"Folder"},e.createElement(D.g,{render:({field:{ref:P,...A}})=>e.createElement(B.Fz,{...A,enableCreateNew:!0,initialFolderUid:X}),name:"folder",control:O})),e.createElement(p.g,{label:"Unique identifier (UID)",description:`The unique identifier (UID) of a dashboard can be used for uniquely identify a dashboard between multiple Grafana installs.
                The UID allows having consistent URLs for accessing dashboards so changing the title of a dashboard will not break any
                bookmarked links to that dashboard.`,invalid:!!a.uid,error:a.uid&&a.uid.message},e.createElement(e.Fragment,null,S?e.createElement(g.I,{...s("uid",{required:!0,validate:async P=>await Q(P)})}):e.createElement(g.I,{disabled:!0,...s("uid",{validate:async P=>await Q(P)}),addonAfter:!S&&e.createElement(o.zx,{onClick:w},"Change uid")}))),E.dataSources&&E.dataSources.map((P,A)=>{if(P.pluginId===n.hr.type)return null;const Z=`dataSources[${A}]`,Me=Ie??[];return e.createElement(p.g,{label:P.label,key:Z,invalid:a.dataSources&&!!a.dataSources[A],error:a.dataSources&&a.dataSources[A]&&"A data source is required"},e.createElement(D.g,{name:Z,render:({field:{ref:Se,...Ce}})=>e.createElement(J.q,{...Ce,noDefault:!0,placeholder:P.info,pluginId:P.pluginId,current:Me[A]?.uid}),control:O,rules:{required:!0}}))}),E.constants&&E.constants.map((P,A)=>{const Z=`constants[${A}]`;return e.createElement(p.g,{label:P.label,error:a.constants&&a.constants[A]&&`${P.label} needs a value`,invalid:a.constants&&!!a.constants[A],key:Z},e.createElement(g.I,{...s(Z,{required:!0}),defaultValue:P.value}))}),e.createElement(te,{inputs:xe,label:"New library panels",description:"List of new library panels that will get imported.",folderName:oe.title}),e.createElement(te,{inputs:Oe,label:"Existing library panels",description:"List of existing library panels. These panels are not affected by the import.",folderName:oe.title}),e.createElement(d.Lh,null,e.createElement(o.zx,{type:"submit","data-testid":h.wl.components.ImportDashboardForm.submit,variant:de(a),onClick:()=>{Pe(!0)}},ie(a)),e.createElement(o.zx,{type:"reset",variant:"secondary",onClick:Y},"Cancel")))};function de(s){return s&&(s.title||s.uid)?"destructive":"primary"}function ie(s){return s&&(s.title||s.uid)?"Import (Overwrite)":"Import"}const ce="dashboard_import_imported",me=s=>{const a=C.E1.getSearchObject();return{dashboard:s.importDashboard.dashboard,meta:s.importDashboard.meta,source:s.importDashboard.source,inputs:s.importDashboard.inputs,folder:a.folderUid?{uid:String(a.folderUid)}:{uid:""}}},ue={clearLoadedDashboard:x.ys,importDashboard:x.$j},pe=(0,l.connect)(me,ue);class fe extends e.PureComponent{constructor(){super(...arguments),this.state={uidReset:!1},this.onSubmit=a=>{(0,v.ff)(ce),this.props.importDashboard(a)},this.onCancel=()=>{this.props.clearLoadedDashboard()},this.onUidReset=()=>{this.setState({uidReset:!0})}}render(){const{dashboard:a,inputs:O,meta:c,source:S,folder:E}=this.props,{uidReset:X}=this.state;return e.createElement(e.Fragment,null,S===T.G7.Gcom&&e.createElement("div",{style:{marginBottom:"24px"}},e.createElement("div",null,e.createElement($.D,null,"Importing dashboard from"," ",e.createElement("a",{href:`https://grafana.com/dashboards/${a.gnetId}`,className:"external-link",target:"_blank",rel:"noreferrer"},"Grafana.com"))),e.createElement("table",{className:"filter-table form-inline"},e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"Published by"),e.createElement("td",null,c.orgName)),e.createElement("tr",null,e.createElement("td",null,"Updated on"),e.createElement("td",null,(0,m.dq)(c.updatedAt)))))),e.createElement(I.l,{onSubmit:this.onSubmit,defaultValues:{...a,constants:[],dataSources:[],elements:[],folder:E},validateOnMount:!0,validateFieldsOnMount:["title","uid"],validateOn:"onChange"},({register:w,errors:Y,control:k,watch:q,getValues:_})=>e.createElement(le,{register:w,errors:Y,control:k,getValues:_,uidReset:X,inputs:O,onCancel:this.onCancel,onUidReset:this.onUidReset,onSubmit:this.onSubmit,watch:q,initialFolderUid:E.uid})))}}const ae=pe(fe);ae.displayName="ImportDashboardOverview";const ee="dashboard_import_loaded",he=s=>({loadingState:s.importDashboard.state}),ge={fetchGcomDashboard:x.q_,importDashboardJson:x.nQ,cleanUpAction:W.e},Ee=(0,l.connect)(he,ge);class ve extends e.PureComponent{constructor(a){super(a),this.fileListRenderer=(c,S)=>null,this.onFileUpload=c=>{(0,v.ff)(ee,{import_source:"json_uploaded"});try{this.props.importDashboardJson(JSON.parse(String(c)))}catch(S){S instanceof Error&&f.Z.emit(b.SI.alertError,["Import failed","JSON -> JS Serialization failed: "+S.message]);return}},this.getDashboardFromJson=c=>{(0,v.ff)(ee,{import_source:"json_pasted"}),this.props.importDashboardJson(JSON.parse(c.dashboardJson))},this.getGcomDashboard=c=>{(0,v.ff)(ee,{import_source:"gcom"});let S;const E=/(^\d+$)|dashboards\/(\d+)/.exec(c.gcomDashboard);E&&E[1]?S=E[1]:E&&E[2]&&(S=E[2]),S&&this.props.fetchGcomDashboard(S)},this.pageNav={text:"Import dashboard",subTitle:"Import dashboard from file or Grafana.com"};const{gcomDashboardId:O}=this.props.queryParams;if(O){this.getGcomDashboard({gcomDashboard:O});return}}componentWillUnmount(){this.props.cleanUpAction({cleanupAction:a=>a.importDashboard=T.wg})}renderImportForm(){const a=ye(this.props.theme);return e.createElement(e.Fragment,null,e.createElement("div",{className:a.option},e.createElement(i.Yo,{options:{multiple:!1,accept:[".json",".txt"]},readAs:"readAsText",fileListRenderer:this.fileListRenderer,onLoad:this.onFileUpload},e.createElement(i.A_,{primaryText:"Upload dashboard JSON file",secondaryText:"Drag and drop here or click to browse"}))),e.createElement("div",{className:a.option},e.createElement(I.l,{onSubmit:this.getGcomDashboard,defaultValues:{gcomDashboard:""}},({register:O,errors:c})=>e.createElement(p.g,{label:"Import via grafana.com",invalid:!!c.gcomDashboard,error:c.gcomDashboard&&c.gcomDashboard.message},e.createElement(g.I,{id:"url-input",placeholder:"Grafana.com dashboard URL or ID",type:"text",...O("gcomDashboard",{required:"A Grafana dashboard URL or ID is required",validate:V}),addonAfter:e.createElement(o.zx,{type:"submit"},"Load")})))),e.createElement("div",{className:a.option},e.createElement(I.l,{onSubmit:this.getDashboardFromJson,defaultValues:{dashboardJson:""}},({register:O,errors:c})=>e.createElement(e.Fragment,null,e.createElement(p.g,{label:"Import via panel json",invalid:!!c.dashboardJson,error:c.dashboardJson&&c.dashboardJson.message},e.createElement(U.K,{...O("dashboardJson",{required:"Need a dashboard JSON model",validate:j}),"data-testid":h.wl.components.DashboardImportPage.textarea,id:"dashboard-json-textarea",rows:10})),e.createElement(d.Lh,null,e.createElement(o.zx,{type:"submit","data-testid":h.wl.components.DashboardImportPage.submit},"Load"),e.createElement(o.Qj,{variant:"secondary",href:`${u.config.appSubUrl}/dashboards`},"Cancel"))))))}render(){const{loadingState:a}=this.props;return e.createElement(L.T,{navId:"dashboards/browse",pageNav:this.pageNav},e.createElement(L.T.Contents,null,a===y.Gu.Loading&&e.createElement(d.wc,{justify:"center"},e.createElement(d.Lh,{justify:"center"},e.createElement(R.$,{size:32}))),[y.Gu.Error,y.Gu.NotStarted].includes(a)&&this.renderImportForm(),a===y.Gu.Done&&e.createElement(ae,null)))}}const De=(0,N.HE)(ve),ne=Ee(De);ne.displayName="DashboardImport";const be=ne,ye=(0,G.B)(s=>({option:(0,r.css)`
      margin-bottom: ${s.spacing(4)};
      max-width: 600px;
    `}))},56983:(F,M,t)=>{t.d(M,{X:()=>I});var r=t(42844),e=t(27702),l=t(9232),b=t(81538),y=t(74639),h=t(66310),v=t(67437),u=t(97918),i=t(90741);const I=({isCurrent:o,title:U,plugin:d,onClick:R,onDelete:N,disabled:G,showBadge:f,description:L,children:W})=>{const m=(0,h.wW)(p),C=G||d.state===l.BV.deprecated,$=(0,r.cx)({[m.item]:!0,[m.itemDisabled]:C,[m.current]:o});return e.createElement("div",{className:$,"aria-label":y.wl.components.PluginVisualization.item(d.name),"data-testid":y.wl.components.PluginVisualization.item(d.name),onClick:C?void 0:R,title:o?"Click again to close this section":d.name},e.createElement("img",{className:(0,r.cx)(m.img,{[m.disabled]:C}),src:d.info.logos.small,alt:""}),e.createElement("div",{className:(0,r.cx)(m.itemContent,{[m.disabled]:C})},e.createElement("div",{className:m.name},U),L?e.createElement("span",{className:m.description},L):null,W),f&&e.createElement("div",{className:(0,r.cx)(m.badge,{[m.disabled]:C})},e.createElement(g,{plugin:d})),N&&e.createElement(v.h,{name:"trash-alt",onClick:x=>{x.stopPropagation(),N()},className:m.deleteButton,"aria-label":"Delete button on panel type card",tooltip:"Delete"}))};I.displayName="PanelTypeCard";const p=o=>({item:(0,r.css)`
      position: relative;
      display: flex;
      flex-shrink: 0;
      cursor: pointer;
      background: ${o.colors.background.secondary};
      border-radius: ${o.shape.borderRadius()};
      box-shadow: ${o.shadows.z1};
      border: 1px solid ${o.colors.background.secondary};
      align-items: center;
      padding: 8px;
      width: 100%;
      position: relative;
      overflow: hidden;
      transition: ${o.transitions.create(["background"],{duration:o.transitions.duration.short})};

      &:hover {
        background: ${o.colors.emphasize(o.colors.background.secondary,.03)};
      }
    `,itemContent:(0,r.css)`
      overflow: hidden;
      position: relative;
      padding: ${o.spacing(0,1)};
    `,itemDisabled:(0,r.css)`
      cursor: default;

      &,
      &:hover {
        background: ${o.colors.action.disabledBackground};
      }
    `,current:(0,r.css)`
      label: currentVisualizationItem;
      border: 1px solid ${o.colors.primary.border};
      background: ${o.colors.action.selected};
    `,disabled:(0,r.css)`
      opacity: 0.6;
      filter: grayscale(1);
      cursor: default;
      pointer-events: none;
    `,name:(0,r.css)`
      text-overflow: ellipsis;
      overflow: hidden;
      font-size: ${o.typography.size.sm};
      font-weight: ${o.typography.fontWeightMedium};
      width: 100%;
    `,description:(0,r.css)`
      display: block;
      text-overflow: ellipsis;
      overflow: hidden;
      color: ${o.colors.text.secondary};
      font-size: ${o.typography.bodySmall.fontSize};
      font-weight: ${o.typography.fontWeightLight};
      width: 100%;
      max-height: 4.5em;
    `,img:(0,r.css)`
      max-height: 38px;
      width: 38px;
      display: flex;
      align-items: center;
    `,badge:(0,r.css)`
      background: ${o.colors.background.primary};
    `,deleteButton:(0,r.css)`
      cursor: pointer;
      margin-left: auto;
    `}),g=({plugin:o})=>(0,b.x)(o.signature)?e.createElement(u.o,{status:o.signature}):e.createElement(i.u,{state:o.state});g.displayName="PanelPluginBadge"},17112:(F,M,t)=>{t.d(M,{Ry:()=>y,hK:()=>h,rw:()=>v,xW:()=>b});var r=t(9232),e=t(95676),l=t(12308);function b(){const u=l.config.panels;return Object.keys(u).filter(i=>u[i].hideFromList===!1).map(i=>u[i]).sort((i,I)=>i.sort-I.sort)}function y(){return b().filter(u=>!!u.skipDataQuery)}function h(){return b().filter(u=>!u.skipDataQuery)}function v(u,i,I){if(!i.length)return u.filter(d=>d.state===r.BV.deprecated?I?.id===d.id:!0);const p=(0,e.x6)(i).toLowerCase(),g=[],o=[],U="graph".startsWith(p);for(const d of u){if(d.state===r.BV.deprecated&&I?.id!==d.id)continue;const N=d.name.toLowerCase().indexOf(p);N===0?g.push(d):N>0?o.push(d):U&&d.id==="timeseries"&&g.push(d)}return g.concat(o)}},90741:(F,M,t)=>{t.d(M,{u:()=>b});var r=t(27702),e=t(9232),l=t(25357);const b=h=>{const v=y(h.state);return v?r.createElement(l.C,{className:h.className,color:v.color,title:v.tooltip,text:v.text,icon:v.icon}):null};function y(h){switch(h){case e.BV.deprecated:return{text:"Deprecated",color:"red",tooltip:"This feature is deprecated and will be removed in a future release"};case e.BV.alpha:return{text:"Alpha",color:"blue",tooltip:"This feature is experimental and future updates might not be backward compatible"};case e.BV.beta:return{text:"Beta",color:"blue",tooltip:"This feature is close to complete but not fully tested"};default:return null}}}}]);

//# sourceMappingURL=DashboardImport.6754fff60b39dda3fd95.js.map