UNPKG

vue-circle-flags

Version:

A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags

3 lines (2 loc) 1.94 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=["viewBox"],r=e.createElementVNode("mask",{id:"686d08f1-4309-4949-8c58-cecedb3a4c2c"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),d={mask:"url(#686d08f1-4309-4949-8c58-cecedb3a4c2c)"},s={key:0},n=e.createStaticVNode('<path fill="#eee" d="m228 0 32 211-32 211h-32l-32-211L196 0Z"></path><path fill="#496e2d" d="M196 0v450H0V0Z"></path><path fill="#eee" d="m178 87-31-14-49 112L49 73 18 87l62 138-62 138 31 14 49-112 49 112 31-14-62-138Z"></path><path fill="#eee" d="M98 80 81 96 65 224l16 130 17 16 17-16 15-131-15-127-17-16Z"></path><path fill="#333" d="m154 148-10 76 10 78a159 159 0 0 0 22-77c0-28-10-54-22-77zm-112 0 9 74-9 80a159 159 0 0 1-22-77c0-28 10-54 22-77z"></path><path fill="#a2001d" d="M42 148v154a269 269 0 0 0 39 52V96c-11 12-26 30-39 52zm112 0a269 269 0 0 0-39-52v258c11-12 26-30 39-52V148Z"></path><path fill="#d80027" d="M512 0v422H228V0Z"></path><path fill="#333" d="m0 450 86-17 75 8 55-51 41 18 106-56 149 70v90H0Z"></path>',8),h={fill:"none"},p=["r"],m=e.defineComponent({__name:"kikuyu",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(c){const t=c,l=e.computed(()=>512+2*t.strokeWidth),o=e.computed(()=>-t.strokeWidth),a=e.computed(()=>256+t.strokeWidth/2);return(f,u)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"svg-circle-flags",viewBox:`${o.value} ${o.value} ${l.value} ${l.value}`},[r,e.createElementVNode("g",d,[t.flagName?(e.openBlock(),e.createElementBlock("title",s,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),n]),e.createElementVNode("g",h,[e.createElementVNode("circle",{cx:"256",cy:"256",r:a.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,p)])],8,i))}});exports.default=m; //# sourceMappingURL=kikuyu-29ef468d.cjs.map