UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

3 lines (2 loc) 1.57 kB
"use strict";const r=require("../utils-Bndrzhtw.cjs"),i=require("../constants-CHwVJpfT.cjs"),e=require("vue"),l=require("../_plugin-vue_export-helper-BRilXfQE.cjs"),d={name:"DtIconLock",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=r.g()}},s=["aria-label","data-qa","aria-hidden"],o=["clip-path"],c=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.5 5A1.5 1.5 0 0 0 1 6.5V10a1.5 1.5 0 0 0 1.5 1.5h7A1.5 1.5 0 0 0 11 10V6.5A1.5 1.5 0 0 0 9.5 5H9V3.5a3 3 0 1 0-6 0V5h1V3.5a2 2 0 0 1 4 0V5H2.5Zm0 1a.5.5 0 0 0-.5.5V10a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V6.5a.5.5 0 0 0-.5-.5h-7Z",fill:"currentColor"},null,-1),u=[c],h=["id"],_=e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1),p=[_];function m(t,V,n,g,q,a){return e.openBlock(),e.createElementBlock("svg",{"aria-label":n.ariaLabel,class:e.normalizeClass([a.iconSizeClass,"d-icon d-icon--lock"]),"data-qa":a.dataQA,"aria-hidden":a.ariaHidden,role:"img","data-name":"Lock",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":`url(#${t.uniqueID}a)`},u,8,o),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:`${t.uniqueID}a`},p,8,h)])],10,s)}const f=l._(d,[["render",m]]);module.exports=f; //# sourceMappingURL=lock.cjs.map