var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/dialog/ConfirmDialog.tsx
var ConfirmDialog_exports = {};
__export(ConfirmDialog_exports, {
  ConfirmDialog: () => ConfirmDialog
});
module.exports = __toCommonJS(ConfirmDialog_exports);

// src/components/user-action/Button.tsx
var import_react = require("react");
var import_clsx = __toESM(require("clsx"));
var import_jsx_runtime = require("react/jsx-runtime");
var ButtonColorUtil = {
  solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
  text: ["primary", "negative", "neutral"],
  outline: ["primary"]
};
var IconButtonUtil = {
  icon: [...ButtonColorUtil.solid, "transparent"]
};
var paddingMapping = {
  none: "",
  small: "btn-sm",
  medium: "btn-md",
  large: "btn-lg"
};
var iconPaddingMapping = {
  none: "",
  tiny: "icon-btn-xs",
  small: "icon-btn-sm",
  medium: "icon-btn-md",
  large: "icon-btn-lg"
};
var ButtonUtil = {
  paddingMapping,
  iconPaddingMapping
};
var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
  children,
  color = "primary",
  size = "medium",
  startIcon,
  endIcon,
  onClick,
  className,
  ...restProps
}, ref) {
  const colorClasses = {
    primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
    secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
    tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
    positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
    warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
    negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
    neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
  }[color];
  const iconColorClasses = {
    primary: "not-group-disabled:text-button-solid-primary-icon",
    secondary: "not-group-disabled:text-button-solid-secondary-icon",
    tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
    positive: "not-group-disabled:text-button-solid-positive-icon",
    warning: "not-group-disabled:text-button-solid-warning-icon",
    negative: "not-group-disabled:text-button-solid-negative-icon",
    neutral: "not-group-disabled:text-button-solid-neutral-icon"
  }[color];
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
    "button",
    {
      ref,
      onClick,
      className: (0, import_clsx.default)(
        "group font-semibold",
        colorClasses,
        "not-disabled:hover:brightness-90",
        "disabled:text-disabled disabled:bg-disabled-background",
        ButtonUtil.paddingMapping[size],
        className
      ),
      ...restProps,
      children: [
        startIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          "span",
          {
            className: (0, import_clsx.default)(
              iconColorClasses,
              "group-disabled:text-disabled-icon"
            ),
            children: startIcon
          }
        ),
        children,
        endIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          "span",
          {
            className: (0, import_clsx.default)(
              iconColorClasses,
              "group-disabled:text-disabled-icon"
            ),
            children: endIcon
          }
        )
      ]
    }
  );
});
var IconButton = (0, import_react.forwardRef)(function IconButton2({
  children,
  color = "primary",
  size = "medium",
  className,
  ...restProps
}, ref) {
  const colorClasses = {
    primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
    secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
    tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
    positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
    warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
    negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
    neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
    transparent: "not-disabled:bg-transparent"
  }[color];
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
    "button",
    {
      ref,
      className: (0, import_clsx.default)(
        colorClasses,
        "not-disabled:hover:brightness-90",
        "disabled:text-disabled",
        {
          "disabled:bg-disabled-background": color !== "transparent",
          "disabled:opacity-70": color === "transparent",
          "not-disabled:hover:bg-button-text-hover-background": color === "transparent"
        },
        ButtonUtil.iconPaddingMapping[size],
        className
      ),
      ...restProps,
      children
    }
  );
});

// src/localization/LanguageProvider.tsx
var import_react3 = require("react");

// src/hooks/useLocalStorage.ts
var import_react2 = require("react");

// src/localization/util.ts
var languages = ["en", "de"];
var languagesLocalNames = {
  en: "English",
  de: "Deutsch"
};
var DEFAULT_LANGUAGE = "en";
var LanguageUtil = {
  languages,
  DEFAULT_LANGUAGE,
  languagesLocalNames
};

// src/localization/LanguageProvider.tsx
var import_jsx_runtime2 = require("react/jsx-runtime");
var LanguageContext = (0, import_react3.createContext)({
  language: LanguageUtil.DEFAULT_LANGUAGE,
  setLanguage: (v) => v
});
var useLanguage = () => {
  const context = (0, import_react3.useContext)(LanguageContext);
  if (!context) {
    throw new Error("useLanguage must be used within LanguageContext. Try adding a LanguageProvider around your app.");
  }
  return context;
};

// src/localization/useTranslation.ts
var TranslationPluralCount = {
  zero: 0,
  one: 1,
  two: 2,
  few: 3,
  many: 11,
  other: -1
};
var useTranslation = (translations, overwriteTranslation = {}) => {
  const { language: languageProp, translation: overwrite } = overwriteTranslation;
  const { language: inferredLanguage } = useLanguage();
  const usedLanguage = languageProp ?? inferredLanguage;
  const usedTranslations = [...translations];
  if (overwrite) {
    usedTranslations.push(overwrite);
  }
  return (key, options) => {
    const { count, replacements } = { ...{ count: 0, replacements: {} }, ...options };
    try {
      for (let i = translations.length - 1; i >= 0; i--) {
        const translation = translations[i];
        const localizedTranslation = translation[usedLanguage];
        if (!localizedTranslation) {
          continue;
        }
        const value = localizedTranslation[key];
        if (!value) {
          continue;
        }
        let forProcessing;
        if (typeof value !== "string") {
          if (count === TranslationPluralCount.zero && value?.zero) {
            forProcessing = value.zero;
          } else if (count === TranslationPluralCount.one && value?.one) {
            forProcessing = value.one;
          } else if (count === TranslationPluralCount.two && value?.two) {
            forProcessing = value.two;
          } else if (TranslationPluralCount.few <= count && count < TranslationPluralCount.many && value?.few) {
            forProcessing = value.few;
          } else if (count > TranslationPluralCount.many && value?.many) {
            forProcessing = value.many;
          } else {
            forProcessing = value.other;
          }
        } else {
          forProcessing = value;
        }
        forProcessing = forProcessing.replace(/\{\{(\w+)}}/g, (_, placeholder) => {
          return replacements[placeholder] ?? `{{key:${placeholder}}}`;
        });
        return forProcessing;
      }
    } catch (e) {
      console.error(e);
    }
    return `{{${usedLanguage}:${key}}}`;
  };
};

// src/components/dialog/ConfirmDialog.tsx
var import_clsx3 = __toESM(require("clsx"));

// src/components/dialog/Dialog.tsx
var import_react7 = require("react");
var import_react8 = require("react");
var import_clsx2 = __toESM(require("clsx"));
var import_lucide_react = require("lucide-react");

// src/localization/defaults/form.ts
var formTranslation = {
  en: {
    add: "Add",
    all: "All",
    apply: "Apply",
    back: "Back",
    cancel: "Cancel",
    change: "Change",
    clear: "Clear",
    click: "Click",
    clickToCopy: "Click to Copy",
    close: "Close",
    confirm: "Confirm",
    copy: "Copy",
    copied: "Copied",
    create: "Create",
    decline: "Decline",
    delete: "Delete",
    discard: "Discard",
    discardChanges: "Discard Changes",
    done: "Done",
    edit: "Edit",
    enterText: "Enter text here",
    error: "Error",
    exit: "Exit",
    fieldRequiredError: "This field is required.",
    invalidEmailError: "Please enter a valid email address.",
    less: "Less",
    loading: "Loading",
    maxLengthError: "Maximum length exceeded.",
    minLengthError: "Minimum length not met.",
    more: "More",
    next: "Next",
    no: "No",
    none: "None",
    nothingFound: "Nothing found",
    of: "of",
    optional: "Optional",
    pleaseWait: "Please wait...",
    previous: "Previous",
    remove: "Remove",
    required: "Required",
    reset: "Reset",
    save: "Save",
    saved: "Saved",
    search: "Search",
    select: "Select",
    selectOption: "Select an option",
    show: "Show",
    showMore: "Show more",
    showLess: "Show less",
    submit: "Submit",
    success: "Success",
    update: "Update",
    unsavedChanges: "Unsaved Changes",
    unsavedChangesSaveQuestion: "Do you want to save your changes?",
    yes: "Yes"
  },
  de: {
    add: "Hinzuf\xFCgen",
    all: "Alle",
    apply: "Anwenden",
    back: "Zur\xFCck",
    cancel: "Abbrechen",
    change: "\xC4ndern",
    clear: "L\xF6schen",
    click: "Klicken",
    clickToCopy: "Zum kopieren klicken",
    close: "Schlie\xDFen",
    confirm: "Best\xE4tigen",
    copy: "Kopieren",
    copied: "Kopiert",
    create: "Erstellen",
    decline: "Ablehnen",
    delete: "L\xF6schen",
    discard: "Verwerfen",
    discardChanges: "\xC4nderungen Verwerfen",
    done: "Fertig",
    edit: "Bearbeiten",
    enterText: "Text hier eingeben",
    error: "Fehler",
    exit: "Beenden",
    fieldRequiredError: "Dieses Feld ist erforderlich.",
    invalidEmailError: "Bitte geben Sie eine g\xFCltige E-Mail-Adresse ein.",
    less: "Weniger",
    loading: "L\xE4dt",
    maxLengthError: "Maximale L\xE4nge \xFCberschritten.",
    minLengthError: "Mindestl\xE4nge nicht erreicht.",
    more: "Mehr",
    next: "Weiter",
    no: "Nein",
    none: "Nichts",
    nothingFound: "Nichts gefunden",
    of: "von",
    optional: "Optional",
    pleaseWait: "Bitte warten...",
    previous: "Vorherige",
    remove: "Entfernen",
    required: "Erforderlich",
    reset: "Zur\xFCcksetzen",
    save: "Speichern",
    saved: "Gespeichert",
    search: "Suche",
    select: "Select",
    selectOption: "Option ausw\xE4hlen",
    show: "Anzeigen",
    showMore: "Mehr anzeigen",
    showLess: "Weniger anzeigen",
    submit: "Abschicken",
    success: "Erfolg",
    update: "Update",
    unsavedChanges: "Ungespeicherte \xC4nderungen",
    unsavedChangesSaveQuestion: "M\xF6chtest du die \xC4nderungen speichern?",
    yes: "Ja"
  }
};

// src/hooks/focus/useFocusTrap.ts
var import_react5 = require("react");

// src/hooks/focus/useIsMounted.ts
var import_react4 = require("react");
var isClient = typeof window !== "undefined" && typeof document !== "undefined";
var useIsomorphicEffect = isClient ? import_react4.useLayoutEffect : import_react4.useEffect;
var useIsMounted = () => {
  const [isMounted, setIsMounted] = (0, import_react4.useState)(false);
  useIsomorphicEffect(() => {
    setIsMounted(true);
    return () => {
      setIsMounted(false);
    };
  }, []);
  return isMounted;
};

// src/hooks/focus/useFocusTrap.ts
var createFocusGuard = () => {
  const div = document.createElement("div");
  Object.assign(div.style, {
    opacity: "0",
    outline: "none",
    boxShadow: "none",
    position: "fixed",
    pointerEvents: "none",
    touchAction: "none"
  });
  div.tabIndex = 0;
  div.setAttribute("data-hw-focus-guard", "");
  document.body.appendChild(div);
  return div;
};
function getContainedFocusableElements(element) {
  return element?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
}
var FocusTrapService = class {
  constructor() {
    // The last entry is always the active one
    this.listeners = [];
    this.onFocusIn = (event) => {
      const active = this.getActive();
      if (!active || !active.container.current) return;
      const { container } = active;
      if (!container.current.contains(event.target)) {
        this.focusElement();
      }
    };
  }
  getActive() {
    if (this.listeners.length === 0) return void 0;
    return this.listeners[this.listeners.length - 1];
  }
  focusElement() {
    const active = this.getActive();
    if (!active) return;
    const { container, initialFocusElement } = active;
    const containerElement = container.current;
    if (initialFocusElement?.current) {
      initialFocusElement.current.focus();
    } else {
      const elements = getContainedFocusableElements(containerElement);
      if (elements && elements.length > 0) {
        const first = elements.item(0);
        first.focus();
      } else {
        containerElement.focus();
      }
    }
  }
  removeGuards() {
    document.querySelectorAll("[data-hw-focus-guard]").forEach((node) => node.remove());
  }
  addGuards() {
    document.body.insertAdjacentElement("afterbegin", createFocusGuard());
    document.body.insertAdjacentElement("beforeend", createFocusGuard());
  }
  activate() {
    document.addEventListener("focusin", this.onFocusIn);
    this.addGuards();
  }
  deactivate() {
    document.removeEventListener("focusin", this.onFocusIn);
    this.removeGuards();
  }
  register(listener) {
    this.listeners.push(listener);
    if (this.listeners.length === 1) {
      this.activate();
    }
    const active = listener;
    this.listeners.forEach((listener2) => {
      const { focus, pause } = listener2;
      if (listener2 === active) {
        focus();
      } else {
        pause();
      }
    });
  }
  unregister(id) {
    const index = this.listeners.findIndex((trap) => trap.id === id);
    if (index !== -1) {
      const isActive = index === this.listeners.length - 1;
      const listener = this.listeners[index];
      this.listeners = this.listeners.filter((listener2) => listener2.id !== id);
      if (isActive) {
        this.deactivate();
        listener.focusLast();
        const active = this.getActive();
        this.listeners.forEach((listener2) => {
          const { pause, unpause } = listener2;
          if (listener2 === active) {
            unpause();
          } else {
            pause();
          }
        });
        if (this.listeners.length > 0) {
          this.activate();
        }
      }
    } else {
      console.warn(`Unable to unregister id ${id}: not found`);
    }
  }
};
var service = new FocusTrapService();
var useFocusTrap = ({
  container,
  active = true,
  initialFocus,
  focusFirst = true
}) => {
  const lastFocusRef = (0, import_react5.useRef)(null);
  const [paused, setPaused] = (0, import_react5.useState)(false);
  const isMounted = useIsMounted();
  const id = (0, import_react5.useId)();
  const focusElement = (0, import_react5.useCallback)(() => {
    const containerElement = container.current;
    if (initialFocus?.current) {
      initialFocus.current.focus();
    } else {
      const elements = getContainedFocusableElements(containerElement);
      if (elements && elements.length > 0) {
        const first = elements.item(0);
        first.focus();
      } else {
        containerElement.focus();
      }
    }
  }, [container, initialFocus]);
  (0, import_react5.useEffect)(() => {
    if (active && isMounted) {
      let pause = function() {
        setPaused(true);
      }, unpause = function() {
        setPaused(false);
        if (!container.current.contains(document.activeElement)) {
          focusElement();
        }
      }, focus = function() {
        focusElement();
        setPaused(false);
      }, focusLast = function() {
        lastFocusRef.current?.focus();
      };
      if (!lastFocusRef.current) {
        lastFocusRef.current = document.activeElement;
      }
      service.register({ id, pause, focus, focusLast, unpause, container, initialFocusElement: initialFocus });
      return () => {
        service.unregister(id);
        lastFocusRef.current = void 0;
      };
    }
  }, [active, container, focusElement, id, initialFocus, isMounted]);
  (0, import_react5.useEffect)(() => {
    if (active && !paused && isMounted) {
      let onKeyDown = function(event) {
        const key = event.key;
        const elements = getContainedFocusableElements(containerElement);
        const active2 = document.activeElement;
        const index = [...elements].findIndex((value) => value === active2);
        if (index === -1 || event.altKey || event.ctrlKey || event.metaKey) {
          return;
        }
        if (key === "Tab") {
          const next = event.shiftKey ? -1 : 1;
          const nextIndex = (index + next + elements.length) % elements.length;
          const nextElement = elements[nextIndex];
          nextElement.focus();
          event.preventDefault();
        }
      };
      const containerElement = container.current;
      containerElement.addEventListener("keydown", onKeyDown);
      return () => {
        containerElement.removeEventListener("keydown", onKeyDown);
      };
    }
  }, [active, paused, isMounted, container, initialFocus, focusFirst, focusElement]);
};

// src/hooks/useLogOnce.ts
var import_react6 = require("react");
var defaultOptions = {
  type: "warning"
};
var useLogOnce = (message, condition, options) => {
  const [hasLogged, setHasLogged] = (0, import_react6.useState)(false);
  const { type } = { ...defaultOptions, ...options };
  (0, import_react6.useEffect)(() => {
    if (!hasLogged && condition) {
      switch (type) {
        case "info":
          console.info(message);
          break;
        case "error":
          console.error(message);
          break;
        case "warning":
          console.warn(message);
          break;
      }
      setHasLogged(true);
    }
  }, [condition]);
};

// src/components/dialog/Dialog.tsx
var import_react_dom = require("react-dom");
var import_jsx_runtime3 = require("react/jsx-runtime");
var Dialog = ({
  children,
  isOpen,
  titleElement,
  description,
  isModal = true,
  onClose,
  backgroundClassName,
  position = "center",
  isAnimated = true,
  containerClassName,
  ...props
}) => {
  const translation = useTranslation([formTranslation]);
  const [visible, setVisible] = (0, import_react8.useState)(isOpen);
  const generatedId = (0, import_react7.useId)();
  const id = props.id ?? generatedId;
  const ref = (0, import_react8.useRef)(null);
  (0, import_react8.useEffect)(() => {
    if (isOpen) {
      setVisible(true);
    } else {
      if (!isAnimated) {
        setVisible(false);
      }
    }
  }, [isAnimated, isOpen]);
  const onCloseWrapper = () => {
    if (!isModal) return;
    onClose?.();
  };
  useLogOnce("Dialog: onClose should be defined for modal dialogs", isModal && !onClose);
  useFocusTrap({
    container: ref,
    active: visible,
    focusFirst: true
  });
  const positionMap = {
    top: "fixed top-8 left-1/2 -translate-x-1/2",
    center: "fixed left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
    none: ""
  };
  const positionStyle = positionMap[position];
  if (!visible) return;
  return (0, import_react_dom.createPortal)(
    /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { id: `dialog-container-${id}`, className: (0, import_clsx2.default)("fixed inset-0 h-screen w-screen", containerClassName), children: [
      /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
        "div",
        {
          id: `dialog-background-${id}`,
          hidden: !visible,
          className: (0, import_clsx2.default)(
            "fixed inset-0 h-screen w-screen bg-overlay-shadow",
            {
              "motion-safe:animate-fade-in": isOpen,
              "motion-safe:animate-fade-out": !isOpen
            },
            backgroundClassName
          ),
          onAnimationEnd: () => {
            if (!isOpen) {
              setVisible(false);
            }
          },
          onClick: onCloseWrapper,
          "aria-hidden": true
        }
      ),
      /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
        "div",
        {
          ...props,
          id: `dialog-${id}`,
          ref,
          hidden: !visible,
          onKeyDown: (event) => {
            if (event.key === "Escape") {
              onCloseWrapper();
            }
          },
          onAnimationEnd: () => {
            if (!isOpen) {
              setVisible(false);
            }
          },
          className: (0, import_clsx2.default)(
            "flex-col-2 p-4 bg-overlay-background text-overlay-text rounded-xl shadow-hw-bottom max-w-[calc(100vw_-_2rem)] max-h-[calc(100vh_-_2rem)]",
            {
              "motion-safe:animate-pop-in": isOpen,
              "motion-safe:animate-pop-out": !isOpen
            },
            positionStyle,
            props.className
          ),
          children: [
            /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "typography-title-lg mr-8", children: titleElement }),
            description && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "text-description", children: description }),
            isModal && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
              "div",
              {
                className: "absolute top-0 right-0",
                style: {
                  paddingTop: "inherit",
                  paddingRight: "inherit"
                },
                children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
                  IconButton,
                  {
                    color: "neutral",
                    size: "tiny",
                    "aria-label": translation("close"),
                    onClick: onCloseWrapper,
                    children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.X, {})
                  }
                )
              }
            ),
            children
          ]
        }
      )
    ] }),
    document.body
  );
};

// src/components/dialog/ConfirmDialog.tsx
var import_jsx_runtime4 = require("react/jsx-runtime");
var ConfirmDialog = ({
  overwriteTranslation,
  children,
  onCancel,
  onConfirm,
  onDecline,
  confirmType = "positive",
  buttonOverwrites,
  className,
  ...restProps
}) => {
  const translation = useTranslation([formTranslation], overwriteTranslation);
  const mapping = {
    neutral: "neutral",
    negative: "negative",
    positive: "positive",
    primary: "primary"
  };
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Dialog, { ...restProps, onClose: onCancel, className: (0, import_clsx3.default)("justify-between", className), children: [
    /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex-col-2 grow", children }),
    /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex-row-4 mt-3 justify-end", children: [
      onCancel && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
        SolidButton,
        {
          color: buttonOverwrites?.[0].color ?? "neutral",
          onClick: onCancel,
          disabled: buttonOverwrites?.[0].disabled ?? false,
          children: buttonOverwrites?.[0].text ?? translation("cancel")
        }
      ),
      onDecline && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
        SolidButton,
        {
          color: buttonOverwrites?.[1].color ?? "negative",
          onClick: onDecline,
          disabled: buttonOverwrites?.[1].disabled ?? false,
          children: buttonOverwrites?.[1].text ?? translation("decline")
        }
      ),
      /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
        SolidButton,
        {
          color: buttonOverwrites?.[2].color ?? mapping[confirmType],
          onClick: onConfirm,
          disabled: buttonOverwrites?.[2].disabled ?? false,
          children: buttonOverwrites?.[2].text ?? translation("confirm")
        }
      )
    ] })
  ] });
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  ConfirmDialog
});
//# sourceMappingURL=ConfirmDialog.js.map