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) 2.02 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=["viewBox"],a=e.createElementVNode("mask",{id:"dabae478-38be-4722-999d-5b07d9697679"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#dabae478-38be-4722-999d-5b07d9697679)"},d={key:0},n=e.createStaticVNode('<path fill="#338af3" d="M0 0h512v512H0z"></path><circle cx="256" cy="256" r="145" fill="#eee"></circle><circle cx="256" cy="256" r="111" fill="#338af3"></circle><path fill="#338af3" d="M76 76h360L256 256z"></path><circle cx="256" cy="256" r="89" fill="#eee"></circle><circle cx="256" cy="256" r="69" fill="#338af3"></circle><path fill="#eee" d="M246 178h20v156h-20z"></path><path fill="#eee" d="M334 246v20H178v-20z"></path><path fill="#eee" d="m304 193.7 14.2 14.2-110.3 110.3-14.2-14.1z"></path><path fill="#eee" d="m318.2 304-14.1 14.2-110.4-110.3 14.2-14.2z"></path><circle cx="256" cy="256" r="44" fill="#eee"></circle><circle cx="256" cy="256" r="22" fill="#338af3"></circle><ellipse cx="256" cy="412" fill="#eee" rx="44" ry="40"></ellipse><path fill="#338af3" d="m256 407-78 63h156z"></path>',14),f={fill:"none"},h=["r"],p=e.defineComponent({__name:"united_nations",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(i){const t=i,l=e.computed(()=>512+2*t.strokeWidth),c=e.computed(()=>-t.strokeWidth),o=e.computed(()=>256+t.strokeWidth/2);return(m,u)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"svg-circle-flags",viewBox:`${c.value} ${c.value} ${l.value} ${l.value}`},[a,e.createElementVNode("g",s,[t.flagName?(e.openBlock(),e.createElementBlock("title",d,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),n]),e.createElementVNode("g",f,[e.createElementVNode("circle",{cx:"256",cy:"256",r:o.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,h)])],8,r))}});exports.default=p; //# sourceMappingURL=united_nations-65c6b588.cjs.map