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.72 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=["viewBox"],i=e.createElementVNode("mask",{id:"73b9345a-e41c-478a-842c-bd1f706a3e9b"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#73b9345a-e41c-478a-842c-bd1f706a3e9b)"},d={key:0},n=e.createStaticVNode('<path fill="#ff9811" d="m0 160 256-32 256 32v192l-256 32L0 352Z"></path><path fill="#eee" d="m0 160 256-32 256 32v32H0Z"></path><path fill="#338af3" d="M0 0h512v160H0Z"></path><path fill="#eee" d="m0 352 256 32 256-32v-32H0Z"></path><path fill="#6da544" d="M0 352h512v160H0Z"></path><circle cx="256" cy="256" r="160" fill="#eee"></circle><circle cx="256" cy="256" r="128" fill="#338af3"></circle><path fill="#ff9811" d="M207 139v68h-68l49 49-49 49h68v68l49-49 49 49v-68h68l-49-49 49-49h-68v-68l-49 49z"></path>',8),h={fill:"none"},f=["r"],m=e.defineComponent({__name:"otomi",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(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",s,[t.flagName?(e.openBlock(),e.createElementBlock("title",d,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,f)])],8,r))}});exports.default=m; //# sourceMappingURL=otomi-f857b70e.cjs.map