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.5 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=["viewBox"],i=e.createElementVNode("mask",{id:"1e040a27-46e5-4e5f-9af9-74fe3874fcab"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#1e040a27-46e5-4e5f-9af9-74fe3874fcab)"},n={key:0},d=e.createStaticVNode('<path fill="#eee" d="M0 128V0h512v128L299 512h-86z"></path><circle cx="256" cy="213" r="57" fill="#ffda44"></circle><path fill="#eee" d="M185 213h142l-71 128Z"></path><path fill="#d80027" d="M256 341 142 235h228z"></path><path fill="#0052b4" d="m0 128 213 213v171H0Zm512 0L299 341v171h213z"></path>',5),f={fill:"none"},h=["r"],m=e.defineComponent({__name:"mf",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),a=e.computed(()=>256+t.strokeWidth/2);return(p,u)=>(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}`},[i,e.createElementVNode("g",s,[t.flagName?(e.openBlock(),e.createElementBlock("title",n,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),d]),e.createElementVNode("g",f,[e.createElementVNode("circle",{cx:"256",cy:"256",r:a.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,h)])],8,r))}});exports.default=m; //# sourceMappingURL=mf-bf2294b5.cjs.map