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.63 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=["viewBox"],r=e.createElementVNode("mask",{id:"fbe03ab5-bd7d-43df-a4bb-a1d7e5df84e2"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),n={mask:"url(#fbe03ab5-bd7d-43df-a4bb-a1d7e5df84e2)"},a={key:0},i=e.createElementVNode("path",{fill:"#0052b4",d:"M0 0h512v167l-64 89 64 89v167H0V345l64-89-64-89Z"},null,-1),f=e.createElementVNode("path",{fill:"#eee",d:"M0 167h512v178H0z"},null,-1),m=e.createElementVNode("path",{fill:"#d80027",d:"M344.3 299.8A128 128 0 0 1 201.8 382 128 128 0 0 1 96 256a128 128 0 0 1 105.8-126 128 128 0 0 1 142.5 82.2L224 256z"},null,-1),u=e.createElementVNode("circle",{cx:"224",cy:"256",r:"64",fill:"#ffda44"},null,-1),_={fill:"none"},h=["r"],k=e.defineComponent({__name:"us-co",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(c){const t=c,o=e.computed(()=>512+2*t.strokeWidth),l=e.computed(()=>-t.strokeWidth),s=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:`${l.value} ${l.value} ${o.value} ${o.value}`},[r,e.createElementVNode("g",n,[t.flagName?(e.openBlock(),e.createElementBlock("title",a,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),i,f,m,u]),e.createElementVNode("g",_,[e.createElementVNode("circle",{cx:"256",cy:"256",r:s.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,h)])],8,d))}});exports.default=k; //# sourceMappingURL=us-co-37127411.cjs.map