import { I as t } from "../../constants-DeVuDy8J.js";
import { createElementBlock as r, openBlock as d, normalizeClass as l, createElementVNode as n } from "vue";
import { _ as s } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
const o = {
  name: "DtIconWebchat",
  props: {
    /**
     * The size of the icon.
     * @values 100, 200, 300, 400, 500, 600, 700, 800
     */
    size: {
      type: String,
      default: "500",
      validator: (e) => Object.keys(t).includes(e)
    },
    /**
     * The label of the icon as read out by a screenreader. Leave this unset if your icon is purely presentational
     */
    ariaLabel: {
      type: String,
      default: void 0
    }
  },
  /**
  * @TODO: Remove this emit once the icons migration is complete,
  * they will no longer need this event.
  * */
  emits: ["loaded"],
  computed: {
    iconSizeClass() {
      return t[this.size];
    },
    ariaHidden() {
      return this.ariaLabel ? "false" : "true";
    },
    dataQA() {
      return this.$attrs["data-qa"] ?? "dt-icon";
    }
  },
  created() {
    this.$emit("loaded");
  }
}, c = ["aria-label", "data-qa", "aria-hidden"], _ = /* @__PURE__ */ n("path", {
  d: "M7 5.667a.167.167 0 0 0-.167-.167H2.167A.167.167 0 0 0 2 5.667v4.126l.26-.26a1.25 1.25 0 0 1 .884-.366h3.689A.168.168 0 0 0 7 9V5.667Zm1 1h.856c.332 0 .65.132.884.366l.26.26V3.167A.167.167 0 0 0 9.833 3H5.167A.167.167 0 0 0 5 3.167V4.5h1.833A1.167 1.167 0 0 1 8 5.667v1Zm3 1.23a.75.75 0 0 1-1.28.53l-.687-.687a.251.251 0 0 0-.177-.073H8V9a1.167 1.167 0 0 1-1.167 1.167h-3.69a.251.251 0 0 0-.176.073l-.687.687a.75.75 0 0 1-1.28-.53v-4.73A1.167 1.167 0 0 1 2.167 4.5H4V3.167A1.167 1.167 0 0 1 5.167 2h4.666A1.167 1.167 0 0 1 11 3.167v4.73Z",
  fill: "currentColor"
}, null, -1), h = [
  _
];
function m(e, u, i, f, p, a) {
  return d(), r("svg", {
    "aria-label": i.ariaLabel,
    class: l([a.iconSizeClass, "d-icon d-icon--webchat"]),
    "data-qa": a.dataQA,
    "aria-hidden": a.ariaHidden,
    role: "img",
    "data-name": "Webchat",
    viewBox: "0 0 12 12",
    xmlns: "http://www.w3.org/2000/svg"
  }, h, 10, c);
}
const g = /* @__PURE__ */ s(o, [["render", m]]);
export {
  g as default
};
//# sourceMappingURL=webchat.js.map
