import { r as o, h as i, H as a, g as d } from "./index.61732cef.js";
import { c as n } from "./index-orsBiyT_.fc4357c3.js";
import "react";
import "react-dom";
const r = () => ":host{display:block}:host *{box-sizing:border-box}.description-list-item__inner{display:flex;max-width:100%;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8);align-items:flex-start;color:var(--s-text-default);line-height:var(--s-line-height-base);justify-content:space-between;gap:var(--s-space-16)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.description-list-item__inner{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.description-list-item--bordered{padding-top:var(--s-space-16);padding-bottom:var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.description-list-item:not(.description-list-item--has-tools) .description-list-item__tools{display:none}.description-list-item:not(.description-list-item--has-additional-content) .description-list-item__additional-content{display:none}.description-list-item__text-container{flex-grow:1}.description-list-item__term{display:block;margin-bottom:var(--s-space-4);font-weight:var(--s-font-weight-semibold);overflow-wrap:break-word}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.description-list-item__term{margin-bottom:var(--s-space-2)}}.description-list-item__tooltip{display:inline-flex;margin-left:var(--s-space-4);vertical-align:middle}.description-list-item__description{display:block;max-width:40rem;margin:0;overflow-wrap:break-word}.description-list-item__tools{display:flex;min-height:2.625rem;flex-shrink:0;align-items:center}.description-list-item__additional-content{padding-bottom:var(--s-space-8);flex-basis:100%;flex-shrink:0}", l = class {
  constructor(t) {
    o(this, t), this.bordered = !0;
  }
  render() {
    const t = Boolean(this.el.querySelector('[slot="tools"]')), e = Boolean(this.el.querySelector('[slot="additional-content"]')), s = n("description-list-item", {
      "description-list-item--bordered": this.bordered,
      "description-list-item--has-additional-content": e,
      "description-list-item--has-tools": t
    });
    return i(a, { key: "4970a43d2827011defa2b0ed17beb4dc41336a36", role: "listitem" }, i("div", { key: "69515ab209d3dbc60f9a52941d72461e9649b9ae", class: s, part: "description-list-item", role: "group" }, i("div", { key: "2428ae9fbc5304c3a271978b2e298206da66d34e", class: "description-list-item__inner" }, i("div", { key: "16b05061df5a03c5b79bee249261b67804e98510", class: "description-list-item__text-container" }, i("div", { key: "71f2b6deffd96329854b435ea65296bb70865b73", class: "description-list-item__term", part: "description-list-item__term", role: "term" }, this.term, this.tooltip && i("span", { key: "c3d0d10992c81e7f0ce86e4b7450aa4f1ce0c146", class: "description-list-item__tooltip" }, i("swirl-tooltip", { key: "5811c5cae4ac3fd526b3251fc7552181fd810406", content: this.tooltip, position: "right" }, i("swirl-icon-info", { key: "e191dd42aecc953df63147506e758d8fbadc1504", size: 16, tabIndex: 0 })))), i("div", { key: "3bb5afa6d9fa5c09ac8f2334116bd2876badf3c0", style: { maxWidth: this.maxWidth }, class: "description-list-item__description", role: "definition" }, i("slot", { key: "b2be6dba464bae5ce68ce1e9825bf78663fdb088" }))), i("div", { key: "b43577ab09d34cd6141882e50de9121527d44692", class: "description-list-item__tools" }, i("slot", { key: "e7cb271bdc981848fb5971464223434ac31b6c77", name: "tools" }))), i("div", { key: "1020ad2c7c9193f0f4027fde73db8f91efc5b197", class: "description-list-item__additional-content" }, i("slot", { key: "f90ae53857c804bef1a326ada27a01423c696e77", name: "additional-content" }))));
  }
  get el() {
    return d(this);
  }
};
l.style = r();
export {
  l as swirl_description_list_item
};
