import { g as r } from "../../utils-BOfnFgIH.js";
import { I as i } from "../../constants-DeVuDy8J.js";
import { n as s } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
const n = {
  name: "DtIconAttestation",
  props: {
    /**
     * The size of the icon.
     * @values 100, 200, 300, 400, 500, 600, 700, 800
     */
    size: {
      type: String,
      default: "500",
      validator: (e) => Object.keys(i).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 i[this.size];
    },
    ariaHidden() {
      return this.ariaLabel ? "false" : "true";
    },
    dataQA() {
      return this.$attrs["data-qa"] ?? "dt-icon";
    }
  },
  created() {
    this.$emit("loaded"), this.uniqueID = r();
  }
};
var d = function() {
  var t = this, a = t._self._c;
  return a("svg", { staticClass: "d-icon d-icon--attestation", class: t.iconSizeClass, attrs: { "aria-label": t.ariaLabel, "data-qa": t.dataQA, "aria-hidden": t.ariaHidden, role: "img", "data-name": "Attestation", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" } }, [a("g", { attrs: { "clip-path": `url(#${t.uniqueID}a)` } }, [a("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 0H0v12h12V0ZM9.442 4.442a.625.625 0 1 0-.884-.884L5 7.116 3.442 5.558a.625.625 0 1 0-.884.884l2 2c.244.244.64.244.884 0l4-4Z", fill: "currentColor" } })]), a("defs", [a("clipPath", { attrs: { id: `${t.uniqueID}a` } }, [a("rect", { attrs: { width: "12", height: "12", rx: "4", fill: "#fff" } })])])]);
}, o = [], l = /* @__PURE__ */ s(
  n,
  d,
  o
);
const f = l.exports;
export {
  f as default
};
//# sourceMappingURL=attestation.js.map
