{"version":3,"file":"component.cjs","names":[],"sources":["../../../../src/icons/component.vue"],"sourcesContent":["<template>\n  <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Component\" class=\"d-icon d-icon--component\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6 8.122 4.812 9.31 6 10.498 7.19 9.31 6 8.122Zm-3.31-3.31L1.503 6l1.189 1.188L3.879 6 2.691 4.812Zm6.62 0L8.12 6l1.19 1.188L10.498 6 9.31 4.812ZM6 1.502 4.812 2.69 6 3.878 7.19 2.69 6 1.502ZM8.19 9.31a1 1 0 0 1-.293.708l-1.189 1.187a1 1 0 0 1-1.414 0l-1.188-1.187a1.002 1.002 0 0 1 0-1.415l1.188-1.189a1 1 0 0 1 1.414 0l1.189 1.189a1 1 0 0 1 .293.707ZM4.879 6a1 1 0 0 1-.226.634l-.067.073-1.188 1.189a1 1 0 0 1-1.341.066l-.073-.066L.795 6.707a1 1 0 0 1 0-1.414l1.189-1.189a1 1 0 0 1 1.414 0l1.188 1.189.067.073A1 1 0 0 1 4.879 6Zm6.62 0a1 1 0 0 1-.294.707l-1.188 1.189a1.001 1.001 0 0 1-1.341.066l-.073-.066-1.189-1.189a1 1 0 0 1 0-1.414l1.189-1.189a1 1 0 0 1 1.414 0l1.188 1.189a1 1 0 0 1 .293.707Zm-3.31-3.31a1 1 0 0 1-.227.634l-.066.073-1.189 1.189a1 1 0 0 1-1.414 0L4.105 3.397a1 1 0 0 1 0-1.414L5.293.795a1 1 0 0 1 1.414 0l1.189 1.188a1 1 0 0 1 .293.707Z\" fill=\"currentColor\"/></svg>\n</template>\n\n<script>\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n  name: 'DtIconComponent',\n\n  props: {\n    /**\n     * The size of the icon.\n     * @values 100, 200, 300, 400, 500, 600, 700, 800\n     */\n    size: {\n      type: [String, Number],\n      default: 500,\n      validator: (s) => Object.keys(ICON_SIZE_MODIFIERS).includes(String(s)),\n    },\n\n    /**\n     * The label of the icon as read out by a screenreader. Leave this unset if your icon is purely presentational\n     */\n    ariaLabel: {\n      type: String,\n      default: undefined,\n    },\n  },\n\n  /**\n  * @TODO: Remove this emit once the icons migration is complete,\n  * they will no longer need this event.\n  * */\n  emits: ['loaded'],\n\n  computed: {\n    iconSizeClass () {\n      return ICON_SIZE_MODIFIERS[this.size];\n    },\n\n    ariaHidden () {\n      return !this.ariaLabel ? 'true' : 'false';\n    },\n\n    dataQA () {\n      return this.$attrs['data-qa'] ?? 'dt-icon';\n    },\n  },\n\n  created () {\n    this.$emit('loaded');\n  },\n};\n</script>\n"],"mappings":"+HAOA,IAAK,EAAU,CACb,KAAM,kBAEN,MAAO,CAKL,KAAM,CACJ,KAAM,CAAC,OAAQ,OAAO,CACtB,QAAS,IACT,UAAY,GAAM,OAAO,KAAK,EAAA,EAAoB,CAAC,SAAS,OAAO,EAAE,CAAC,CACvE,CAKD,UAAW,CACT,KAAM,OACN,QAAS,IAAA,GACV,CACF,CAMD,MAAO,CAAC,SAAS,CAEjB,SAAU,CACR,eAAiB,CACf,OAAO,EAAA,EAAoB,KAAK,OAGlC,YAAc,CACZ,OAAQ,KAAK,UAAqB,QAAT,QAG3B,QAAU,CACR,OAAO,KAAK,OAAO,YAAc,WAEpC,CAED,SAAW,CACT,KAAK,MAAM,SAAS,EAEvB,mHApD4lC,MAAA,CAArlC,aAAY,EAAA,UAAY,OAAA,EAAA,EAAA,gBAAK,CAAE,EAAA,cAAkG,2BAA0B,CAAA,CAA5G,UAAS,EAAA,OAAS,cAAa,EAAA,WAAY,KAAK,MAAM,YAAU,YAA6C,QAAQ,YAAY,MAAM,wEAAy5B,OAAA,CAAt3B,EAAE,+1BAA+1B,KAAK"}