@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 2.25 kB
JavaScript
;const o=require("../../utils-Bndrzhtw.cjs"),i=require("../../constants-CHwVJpfT.cjs"),e=require("vue"),r=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),s={name:"DtIconFront",props:{size:{type:String,default:"500",validator:t=>Object.keys(i.I).includes(t)},ariaLabel:{type:String,default:void 0}},emits:["loaded"],computed:{iconSizeClass(){return i.I[this.size]},ariaHidden(){return this.ariaLabel?"false":"true"},dataQA(){return this.$attrs["data-qa"]??"dt-icon"}},created(){this.$emit("loaded"),this.uniqueID=o.g()}},d=["aria-label","data-qa","aria-hidden"],u=["fill"],c=["fill"],p=["id"],m=["id"];function f(t,a,l,_,q,n){return e.openBlock(),e.createElementBlock("svg",{"aria-label":l.ariaLabel,class:e.normalizeClass([n.iconSizeClass,"d-icon d-icon--front"]),"data-qa":n.dataQA,"aria-hidden":n.ariaHidden,role:"img","data-name":"Front",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[a[2]||(a[2]=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.223 5.45a3.302 3.302 0 0 1 3.302-3.302h10.59v4.7a1.65 1.65 0 0 1-1.65 1.651h-4.33a1.588 1.588 0 0 0-1.561 1.566v10.279c0 .912-.74 1.65-1.651 1.65h-4.7V5.452z",fill:"#001B38"},null,-1)),e.createElementVNode("path",{d:"M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z",fill:`url(#${t.uniqueID}a)`},null,8,u),e.createElementVNode("path",{opacity:".5",d:"M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z",fill:`url(#${t.uniqueID}b)`},null,8,c),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`${t.uniqueID}a`,x1:"10.182",y1:"6.913",x2:"16.629",y2:"13.404",gradientUnits:"userSpaceOnUse"},[...a[0]||(a[0]=[e.createElementVNode("stop",{"stop-color":"#FF0057","stop-opacity":".16"},null,-1),e.createElementVNode("stop",{offset:".861","stop-color":"#FF0057"},null,-1)])],8,p),e.createElementVNode("linearGradient",{id:`${t.uniqueID}b`,x1:"10.182",y1:"6.913",x2:"16.629",y2:"13.404",gradientUnits:"userSpaceOnUse"},[...a[1]||(a[1]=[e.createElementVNode("stop",{"stop-color":"#FF0057","stop-opacity":".16"},null,-1),e.createElementVNode("stop",{offset:".861","stop-color":"#FF0057"},null,-1)])],8,m)])],10,d)}const h=r._(s,[["render",f]]);module.exports=h;
//# sourceMappingURL=front.cjs.map