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) • 2.4 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=["viewBox"],i=e.createElementVNode("mask",{id:"4f42b6f4-1a06-412c-ab42-9721248ae0e3"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),r={mask:"url(#4f42b6f4-1a06-412c-ab42-9721248ae0e3)"},s={key:0},d=e.createStaticVNode('<path fill="#496e2d" d="M0 0h208l48 32 48-32h208v208l-32 48 32 48v208H304l-48-32-48 32H0V304l32-48-32-48Z"></path><path fill="#333" d="M512 240v32l-256 32L0 272v-32l256-32z"></path><path fill="#ffda44" d="M512 208v32H0v-32z"></path><path fill="#333" d="M240 0h32l32 256-32 256h-32l-32-256Z"></path><path fill="#ffda44" d="M208 0h32v512h-32z"></path><path fill="#eee" d="M272 0h32v512h-32z"></path><path fill="#eee" d="M512 272v32H0v-32z"></path><circle cx="256" cy="256" r="122.4" fill="#d80027"></circle><path fill="#496e2d" d="M284 270c-9-19-21-37-21-37v-13a14 14 0 0 0-27-2 11 11 0 0 0-4 21 16 16 0 0 1 9-9 14 14 0 0 0 2 2h2s-7 19-7 29c0 27 19 36 19 36l-10 9h19v-18l9 9s17-11 9-27zm-28-114 4 13h14l-11 8 4 12-11-8-11 8 4-12-11-8h14Zm-59 19 11 8 11-8-4 13 11 8h-14l-4 12-4-12h-14l11-8zm-36 50h13l4-13 4 13h14l-11 8 4 13-11-8-11 8 5-13zm0 62 11-8-5-13 11 8 11-8-4 13 11 8h-14l-4 13-4-13Zm36 50 4-13-11-8h14l4-12 4 12h13l-10 8 4 13-11-8zm59 19-4-13h-14l11-8-4-12 11 8 11-8-4 12 11 9h-14Zm59-19-11-8-11 8 4-13-10-8h13l4-12 4 12h14l-11 8zm36-50h-13l-4 13-4-13h-14l11-8-4-13 11 8 11-8-5 13zm0-62-11 8 5 13-11-8-11 8 4-13-11-8h14l4-13 4 13zm-36-50-4 13 11 8h-14l-4 12-4-12h-14l11-8-4-13 11 8z"></path>',9),n={fill:"none"},m=["r"],f=e.defineComponent({__name:"dm",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(a){const t=a,l=e.computed(()=>512+2*t.strokeWidth),o=e.computed(()=>-t.strokeWidth),h=e.computed(()=>256+t.strokeWidth/2);return(p,v)=>(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}`},[i,e.createElementVNode("g",r,[t.flagName?(e.openBlock(),e.createElementBlock("title",s,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),d]),e.createElementVNode("g",n,[e.createElementVNode("circle",{cx:"256",cy:"256",r:h.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,m)])],8,c))}});exports.default=f;
//# sourceMappingURL=dm-40542408.cjs.map