// ../src/helpers/formatClassString.ts
var formatClassString = (classesArray) => {
  return classesArray.filter((x) => !!x).join(" ");
};

// ../src/foundations/icons/sprite.svg
import { h } from "preact";
import { jsx, jsxs } from "preact/jsx-runtime";

// ../src/components/icon-sprite/icon-sprite.tsx
import { jsx as jsx2 } from "preact/jsx-runtime";
var IconUse = ({ iconName, classNames, attributes }) => {
  const componentClassName = "ds-icon";
  const classes = formatClassString([
    componentClassName,
    `${componentClassName}--sprite`,
    `${componentClassName}--${iconName}`,
    classNames
  ]);
  return /* @__PURE__ */ jsx2("i", { className: classes, ...attributes, children: /* @__PURE__ */ jsx2("svg", { children: /* @__PURE__ */ jsx2("use", { xlinkHref: `#ds-${iconName}` }) }) });
};

// ../src/components/disclaimer/disclaimer.tsx
import { jsx as jsx3, jsxs as jsxs2 } from "preact/jsx-runtime";
var Disclaimer = ({ bodyHtml, iconName, variant = "default", classNames, attributes }) => {
  const componentClassName = "ds-disclaimer";
  const classNamePrefix = `${componentClassName}--`;
  const classes = formatClassString([
    componentClassName,
    `${classNamePrefix}${variant}`,
    iconName && `${classNamePrefix}with-icon`,
    classNames
  ]);
  return /* @__PURE__ */ jsxs2("section", { className: classes, ...attributes, children: [
    iconName && /* @__PURE__ */ jsx3("span", { className: `${componentClassName}__icon-wrapper`, children: /* @__PURE__ */ jsx3(IconUse, { iconName }) }),
    /* @__PURE__ */ jsx3("div", { className: `${componentClassName}__body-html`, dangerouslySetInnerHTML: { __html: bodyHtml } })
  ] });
};
export {
  Disclaimer
};
//# sourceMappingURL=disclaimer.js.map
