"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7424],{67424(l,f,u){u.r(f);var i=u(35591),d=u(34448),r=u(88950);const c=["/dashboards","/dashboard/","/d/"];function b(t){return t==="/dashboards"?!0:c.some(e=>t.startsWith(e))}(0,i.H3)("browse_to_resource",t=>(0,d.CA)("grafana_browse_dashboards_page_view",e=>{t.getActiveJourney("browse_to_resource")||t.startJourney("browse_to_resource",{attributes:{source:"browse_dashboards",folderUID:(0,r.gx)(e.folderUID)}})})),(0,i.XU)("browse_to_resource",t=>{let e=null,s=null,o=null;const{add:a,cleanup:_}=(0,r.pi)();return a((0,d.CA)("grafana_browse_dashboards_page_click_list_item",n=>{e&&(e.end({outcome:"superseded"}),e=null),s&&(s.end({outcome:"superseded"}),s=null),n.itemKind==="folder"?e=t.startStep("navigate_folder",{folderUID:(0,r.gx)(n.uid)}):(s=t.startStep("select_resource",{resourceType:(0,r.gx)(n.itemKind??"unknown"),resourceUID:(0,r.gx)(n.uid)}),t.setAttributes({resourceType:(0,r.gx)(n.itemKind??"unknown"),resourceUID:(0,r.gx)(n.uid)}))})),a((0,d.CA)("grafana_browse_dashboards_page_view",n=>{const g=(0,r.gx)(n.folderUID);e&&(e.end({folderUID:g}),e=null),t.setAttributes({folderUID:g})})),a((0,d.CA)("grafana_browse_dashboards_new_folder_drawer_opened",()=>{o&&o.end({outcome:"superseded"}),o=t.startStep("create_folder")})),a((0,d.CA)("grafana_manage_dashboards_folder_created",n=>{o&&(o.end({outcome:"success",isSubfolder:(0,r.gx)(n.is_subfolder),folderDepth:(0,r.gx)(n.folder_depth)}),o=null)})),a((0,r.M5)(t,b)),a((0,d.CA)("grafana_browse_dashboards_filter_changed",n=>{t.recordEvent("filter_changed",{dimension:(0,r.gx)(n.dimension),cleared:(0,r.gx)(n.cleared)})})),a((0,d.CA)("dashboards_init_dashboard_completed",n=>{s&&(s.end({dashboardUid:(0,r.gx)(n.uid)}),s=null),t.setAttributes({resourceType:"dashboard",dashboardUid:(0,r.gx)(n.uid)}),t.end("success")})),_})},88950(l,f,u){u.d(f,{M5:()=>t,gx:()=>r,pi:()=>d});var i=u(98391);function d(){const e=[];return{add:s=>{e.push(s)},cleanup:()=>e.forEach(s=>s())}}function r(e){return e==null?"":typeof e=="string"?e:typeof e=="boolean"||typeof e=="bigint"?String(e):typeof e=="number"?Number.isFinite(e)?String(e):(`${e}`,""):""}const c=new Set;function b(e){}function t(e,s){let o=!0;const a=i.Ny.getLocationObservable().subscribe(_=>{if(o){o=!1;return}!s(_.pathname)&&e.isActive&&e.end("abandoned",{abandonedAt:_.pathname})});return()=>a.unsubscribe()}}}]);

//# sourceMappingURL=7424.8685342083dda1476f93.js.map