vue-circle-flags
Version:
A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags
2 lines • 2.2 kB
JavaScript
let e=require("vue");var t=[`viewBox`],n=(0,e.createElementVNode)(`mask`,{id:`d35b468f-f353-4372-a23c-c916b02a5667`},[(0,e.createElementVNode)(`circle`,{cx:`256`,cy:`256`,r:`256`,fill:`#fff`})],-1),r={mask:`url(#d35b468f-f353-4372-a23c-c916b02a5667)`},i={key:0},a=(0,e.createElementVNode)(`path`,{fill:`#0052b4`,d:`M0 0h512v512H0z`},null,-1),o=(0,e.createElementVNode)(`path`,{fill:`#ffda44`,d:`M224 361h64l-52 37.5 20-61 20 61zm-79.2-32.8h64l-52 37.5 20-61 20 61zM112 249h64l-52 37.5 20-61 20 61zm144 145-12 8.6V451l12 21 12-21v-48.4zm6.7-207.7c-14.3 5.2-18.9 17.4-17.5 30.5a20.7 20.7 0 0 1-6.3-11.5 26 26 0 0 0-6 15.9 27.8 27.8 0 0 0 8.3 19.8H216v16h16l12 31h-12v16h12v44.4l12-36.6 12 36.6V304h12v-16h-12l12-31h16v-16h-23.3c7.6-8.5 8.6-23.3 1.9-34-.3 6.4-3.5 11.2-5.6 14.8-.9-11.8-11.2-18.8-6.3-35.5ZM224 63.5h64L236 101l20-61 20 61zm92.1 29.9h64l-52 37.5 20-61 20 61zm63.5 63.5h64l-52 37.5 20-61 20 61zm29.9 92.1h64l-52 37.5 20-61 20 61zm-29.9 92.1h64l-52 37.5 20-61 20 61zm-63.5 63.5h64l-52 37.5 20-61 20 61zm-184.2 0h64l-52 37.5 20-61 20 61zm-63.5-63.5h64l-52 37.5 20-61 20 61zM38.5 249h64l-52 37.5 20-61 20 61zm29.9-92.1h64l-52 37.5 20-61 20 61zm63.5-63.5h64l-52 37.5 20-61 20 61zM224 137h64l-52 37.5 20-61 20 61zm112 112h64l-52 37.5 20-61 20 61zm-32.8 79.2h64l-52 37.5 20-61 20 61z`},null,-1),s={fill:`none`},c=[`r`],l=(0,e.defineComponent)({__name:`us-in`,props:{flagName:{},strokeColor:{default:`#000`},strokeWidth:{default:0}},setup(l){let u=l,d=(0,e.computed)(()=>512+2*u.strokeWidth),f=(0,e.computed)(()=>-u.strokeWidth),p=(0,e.computed)(()=>256+u.strokeWidth/2);return(l,m)=>((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`svg-circle-flags`,viewBox:`${f.value} ${f.value} ${d.value} ${d.value}`},[n,(0,e.createElementVNode)(`g`,r,[u.flagName?((0,e.openBlock)(),(0,e.createElementBlock)(`title`,i,(0,e.toDisplayString)(u.flagName),1)):(0,e.createCommentVNode)(``,!0),a,o]),(0,e.createElementVNode)(`g`,s,[(0,e.createElementVNode)(`circle`,{cx:`256`,cy:`256`,r:p.value,fill:`none`,style:(0,e.normalizeStyle)({stroke:u.strokeColor,strokeWidth:u.strokeWidth})},null,12,c)])],8,t))}});exports.default=l;
//# sourceMappingURL=us-in-CInl2YIZ.cjs.map