"use strict";

var _define = require("./preactement/define");
var _Alert = require("../Alert");
var _jsxRuntime = require("react/jsx-runtime");
const attributes = ['class-name', 'heading', 'heading-id', 'hide-icon', 'role', 'weight', 'variation', 'analytics', 'analytics-label-override', 'analytics-event-type-override', 'analytics-parent-heading', 'analytics-parent-type', 'root-id'];
const Wrapper = _ref => {
  let {
    analytics,
    hideIcon,
    rootId,
    ...otherProps
  } = _ref;
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Alert.Alert, {
    ...otherProps,
    analytics: analytics && Boolean(JSON.parse(analytics)),
    hideIcon: hideIcon && Boolean(JSON.parse(hideIcon)),
    id: rootId
  });
};
(0, _define.define)('ds-alert', () => Wrapper, {
  attributes,
  events: ['onAnalyticsEvent']
});