"use client";
import{initAll as e,track as t}from"@amplitude/unified";function n(e,n,i){return r||console.log(`[Tracking]`,e,n,i),t(e,n,i)}let r=!1;function i(){function t(e){let t=document.cookie.match(`(^|;)\\s*`+e+`\\s*=\\s*([^;]+)`);return t?t.pop():``}let n=t(`recce_user_id`),i=process.env.AMPLITUDE_API_KEY;if(n&&i)try{e(i,{analytics:{userId:n,autocapture:!0},sessionReplay:{sampleRate:1}}),r=!0}catch(e){console.error(e)}r||console.log(`[Tracking] Amplitude not initialized (missing API key or user ID). Events will be logged to console instead.`)}function a(e){n(`[Web] multi_nodes_action`,e)}function o(e){n(`[Web] history_action`,e)}function s(e){n(`[Experiment] preview_change`,e)}function c(e){n(`[Experiment] preview_change`,e)}function l(e){n(`[Experiment] single_environment`,e)}function u(){return!1}function d(e){n(`[Web] column_level_lineage`,e)}function f(e){n(`[Web] share_state`,e)}function p(e){n(`[Web] state_action`,e)}function m(e){n(`[Click] copy_to_clipboard`,e)}function h(e){n(`[Web] navigation_change`,e)}function g(e){n(`[Web] lineage_view_render`,e)}function _(e){n(`[Web] environment_config`,e)}const v={ROW_COUNT:`row_count`,ROW_COUNT_DIFF:`row_count_diff`,PROFILE:`profile`,PROFILE_DIFF:`profile_diff`,VALUE_DIFF:`value_diff`,SCHEMA_DIFF:`schema_diff`,LINEAGE_DIFF:`lineage_diff`,QUERY:`query`,HISTOGRAM_DIFF:`histogram_diff`,TOP_K_DIFF:`top_k_diff`},y={LINEAGE_VIEW_TOP_BAR:`lineage_view_top_bar`,LINEAGE_VIEW_CONTEXT_MENU:`lineage_view_context_menu`,NODE_KEBAB_MENU:`node_kebab_menu`,NODE_SIDEBAR_SINGLE_ENV:`node_sidebar_single_env`,NODE_SIDEBAR_MULTI_ENV:`node_sidebar_multi_env`,SCHEMA_ROW_COUNT_BUTTON:`schema_row_count_button`,SCHEMA_COLUMN_MENU:`schema_column_menu`};function b(e){n(`[Web] explore_action`,e)}const x={EXECUTE:`execute`,CANCEL:`cancel`};function S(e){n(`[Web] explore_action_form`,e)}function C(e){return Object.values(v).includes(e)}const w={SELECT_PARENT_NODES:`select_parent_nodes`,SELECT_CHILD_NODES:`select_child_nodes`,SELECT_ALL_UPSTREAM:`select_all_upstream`,SELECT_ALL_DOWNSTREAM:`select_all_downstream`};function T(e){n(`[Web] lineage_selection`,e)}export{p as S,h as _,u as a,f as b,m as c,S as d,o as f,a as g,g as h,w as i,_ as l,T as m,x as n,C as o,i as p,y as r,d as s,v as t,b as u,s as v,l as x,c as y};
//# sourceMappingURL=track-DV9xFZGy.js.map