;
{
  try {
    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2c7a8929-3eaf-4277-945f-8607d8d45a70", e._sentryDebugIdIdentifier = "sentry-dbid-2c7a8929-3eaf-4277-945f-8607d8d45a70");
  } catch (e) {
  }
}
;
import { jsx } from "preact/jsx-runtime";
import { p as useAnalyticsContext } from "./StoreProvider-CqQrndhS.js";
import { a as Alert } from "./Alert-CpDg47bv.js";
function ContextGuidance({
  title,
  content,
  titleId,
  contentId,
  trackingParams
}) {
  const userEvents = useAnalyticsContext();
  const onGuidanceToggle = (status) => {
    userEvents.addFieldEvent("Clicked accordion", {
      actionType: status,
      field: "context guidance",
      label: titleId,
      content: contentId,
      ...trackingParams
    });
  };
  return /* @__PURE__ */ jsx(Alert, { title, type: "collapsible", variant: "info", onToggle: onGuidanceToggle, children: content });
}
export {
  ContextGuidance as C
};
