"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[2168],{92168(f,i,a){a.r(i);var o=a(35591),t=a(34448),r=a(88950);(0,o.H3)("datasource_configure",n=>{const{add:s,cleanup:u}=(0,r.pi)();return s((0,t.CA)("connections_datasource_list_add_datasource_clicked",()=>{n.startJourney("datasource_configure",{attributes:{source:"datasource_list"}})})),s((0,t.CA)("connections_new_datasource_page_view",()=>{n.getActiveJourney("datasource_configure")||n.startJourney("datasource_configure",{attributes:{source:"datasource_picker"}})})),s((0,t.CA)("grafana_ds_add_datasource_clicked",e=>{const c=n.getActiveJourney("datasource_configure");c?(c.recordEvent("select_type",{pluginId:(0,r.gx)(e.plugin_id)}),c.setAttributes({pluginId:(0,r.gx)(e.plugin_id)})):n.startJourney("datasource_configure",{attributes:{source:"catalog",pluginId:(0,r.gx)(e.plugin_id)}})})),u}),(0,o.XU)("datasource_configure",n=>{const{add:s,cleanup:u}=(0,r.pi)();let e=!1;return s((0,t.CA)("grafana_ds_add_datasource_clicked",()=>{e=!0})),s((0,t.CA)("connections_datasources_ds_configured",()=>{n.recordEvent("save_config")})),s((0,t.CA)("grafana_ds_test_datasource_clicked",c=>{c.success===!0||c.success==="true"?n.end("success"):n.recordEvent("test_failed")})),s((0,t.CA)("connections_new_datasource_cancelled",()=>{n.end("discarded")})),s((0,t.CA)("connections_datasource_deleted",()=>{n.end("discarded")})),s((0,t.CA)("connections_datasource_config_page_left",()=>{n.end("abandoned")})),s((0,t.CA)("connections_new_datasource_page_left",()=>{e||n.end("abandoned")})),u})},88950(f,i,a){a.d(i,{M5:()=>u,gx:()=>r,pi:()=>t});var o=a(98391);function t(){const e=[];return{add:c=>{e.push(c)},cleanup:()=>e.forEach(c=>c())}}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 n=new Set;function s(e){}function u(e,c){let d=!0;const g=o.Ny.getLocationObservable().subscribe(_=>{if(d){d=!1;return}!c(_.pathname)&&e.isActive&&e.end("abandoned",{abandonedAt:_.pathname})});return()=>g.unsubscribe()}}}]);

//# sourceMappingURL=2168.02cf0a79a4a852259993.js.map