import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
import { a as getHostAttrs } from './index2.js';

const bsProfileLayoutCss = "bs-profile-layout{}bs-profile-layout .bs-profile:where([data-layout]),bs-profile-layout .bs-profile:where([data-layout^=\"vertical\"]){display:grid;row-gap:0.5rem}bs-profile-layout .bs-profile:where([data-layout^=\"horizontal\"]){column-gap:1rem;grid-template-columns:auto 1fr;align-items:center}bs-profile-layout a.bs-profile:where([data-layout]){text-decoration:none}bs-profile-layout a.bs-profile:where([data-layout]){--profile-name-color:var(--bs-ink-blue)}bs-profile-layout a.bs-profile:where([data-layout]):hover{--profile-name-decoration:underline}";

const BsProfileLayout = /*@__PURE__*/ proxyCustomElement(class BsProfileLayout extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    /** Native attributes to pass through to the main element. */
    this.attrs = {};
    this.layout = 'vertical';
    this.href = undefined;
    this.passAttrs = '';
  }
  componentWillLoad() {
    this.attrs = getHostAttrs(this.hostEl, ['title', 'target', ...this.passAttrs.split(',')]);
  }
  render() {
    const TagName = this.href ? 'a' : 'div';
    return (h(Host, null, h(TagName, Object.assign({ href: this.href, class: "bs-profile", "data-layout": this.layout }, this.attrs), h("slot", null))));
  }
  get hostEl() { return this; }
  static get style() { return bsProfileLayoutCss; }
}, [4, "bs-profile-layout", {
    "layout": [1],
    "href": [1],
    "passAttrs": [1, "pass-attrs"]
  }]);
function defineCustomElement() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["bs-profile-layout"];
  components.forEach(tagName => { switch (tagName) {
    case "bs-profile-layout":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, BsProfileLayout);
      }
      break;
  } });
}

export { BsProfileLayout as B, defineCustomElement as d };

//# sourceMappingURL=bs-profile-layout2.js.map