import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
import { d as defineCustomElement$1 } from './klevu-typography2.js';

const klevuChatBubbleCss = ":host{display:flex;justify-content:flex-end}:host(.remote){justify-content:flex-start}klevu-typography{display:inline-block;padding:var(--klevu-spacing-04);background-color:var(--klevu-color-neutral-2);border-radius:var(--klevu-border-radius-m);border-bottom-right-radius:0}:host(.remote) klevu-typography{background-color:var(--klevu-color-primary);color:var(--klevu-color-neutral-1);border-radius:var(--klevu-border-radius-m);border-bottom-left-radius:0;--klevu-typography-color:var(--klevu-color-neutral-1)}";

const KlevuChatBubble = /*@__PURE__*/ proxyCustomElement(class KlevuChatBubble extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    this.__attachShadow();
    this.remote = undefined;
  }
  render() {
    return (h(Host, { class: {
        remote: Boolean(this.remote),
      } }, h("klevu-typography", { variant: "body-s" }, h("slot", null))));
  }
  static get style() { return klevuChatBubbleCss; }
}, [1, "klevu-chat-bubble", {
    "remote": [4]
  }]);
function defineCustomElement() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["klevu-chat-bubble", "klevu-typography"];
  components.forEach(tagName => { switch (tagName) {
    case "klevu-chat-bubble":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, KlevuChatBubble);
      }
      break;
    case "klevu-typography":
      if (!customElements.get(tagName)) {
        defineCustomElement$1();
      }
      break;
  } });
}
defineCustomElement();

export { KlevuChatBubble as K, defineCustomElement as d };

//# sourceMappingURL=klevu-chat-bubble2.js.map