@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 1.55 kB
JavaScript
;const n=require("../../utils-Bndrzhtw.cjs"),l=require("../../constants-CHwVJpfT.cjs"),e=require("vue"),d=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),s={name:"DtIconSlash",props:{size:{type:String,default:"500",validator:a=>Object.keys(l.I).includes(a)},ariaLabel:{type:String,default:void 0}},emits:["loaded"],computed:{iconSizeClass(){return l.I[this.size]},ariaHidden(){return this.ariaLabel?"false":"true"},dataQA(){return this.$attrs["data-qa"]??"dt-icon"}},created(){this.$emit("loaded"),this.uniqueID=n.g()}},o=["aria-label","data-qa","aria-hidden"],u=["clip-path"],c=["id"];function p(a,t,r,m,f,i){return e.openBlock(),e.createElementBlock("svg",{"aria-label":r.ariaLabel,class:e.normalizeClass([i.iconSizeClass,"d-icon d-icon--slash"]),"data-qa":i.dataQA,"aria-hidden":i.ariaHidden,role:"img","data-name":"Slash",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":`url(#${a.uniqueID}a)`},[...t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M.5 6a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0ZM6 10.5a4.5 4.5 0 0 1-3.516-7.309L8.81 9.516A4.48 4.48 0 0 1 6 10.5ZM10.5 6a4.5 4.5 0 0 0-7.309-3.516l6.325 6.325A4.48 4.48 0 0 0 10.5 6Z",fill:"currentColor"},null,-1)])],8,u),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:`${a.uniqueID}a`},[...t[1]||(t[1]=[e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1)])],8,c)])],10,o)}const h=d._(s,[["render",p]]);module.exports=h;
//# sourceMappingURL=slash.cjs.map