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.46 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=["viewBox"],r=e.createElementVNode("mask",{id:"f75739b9-03c8-4019-9922-bf81fdb67c69"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#f75739b9-03c8-4019-9922-bf81fdb67c69)"},d={key:0},n=e.createStaticVNode('<path fill="#eee" d="m0 170 256-64 256 64v172l-256 64L0 342Z"></path><path fill="#d80027" d="M0 0h512v170H0Z"></path><path fill="#0052b4" d="M0 342h512v170H0Z"></path><circle cx="256" cy="256" r="160" fill="#0052b4"></circle><circle cx="256" cy="256" r="104" fill="#eee"></circle><path fill="#eee" d="m240 148.4 41.6-30h-51.2l41.6 30-16-48.8zM363.6 240l30 41.6v-51.2l-30 41.6 48.8-16zM272 363.6l-41.6 30h51.2l-41.6-30 16 48.8zM148.4 272l-30-41.6v51.2l30-41.6-48.8 16zm147.5-117.2 51.1-5.2-44.4-25.6 21.1 46.8 10.5-50.3zm61.3 141.1 5.2 51.1 25.6-44.4-46.8 21.1 50.2 10.5zm-141.1 61.3-51.1 5.2 44.4 25.6-21.1-46.8-10.5 50.2zm-61.3-141.1-5.2-51.1-25.6 44.4 46.8-21.1-50.2-10.5Zm186.4-27.8 46.8 21.1-25.6-44.4-5.2 51.1 34.3-38.3zm-17.5 152.9L302.6 388l44.4-25.6-51.1-5.2 38.3 34.2zm-152.9-17.5L124 302.6l25.6 44.4 5.2-51.1-34.3 38.3zm17.5-152.9 21.1-46.8-44.4 25.6 51.1 5.2-38.3-34.2z"></path><path fill="#338af3" d="M256 168a88 88 0 0 0-74.9 42H331a88 88 0 0 0-75-42z"></path><circle cx="256" cy="280" r="56" fill="#ff9811"></circle><path fill="#eee" d="M288 280a32 32 0 0 1-32 32l-16-32 16-32a32 32 0 0 1 32 32z"></path><path fill="#0052b4" d="M256 248a32 32 0 0 0-32 32l16 16 16-16z"></path><path fill="#d80027" d="M256 312a32 32 0 0 1-32-32h32z"></path>',11),f={fill:"none"},h=["r"],m=e.defineComponent({__name:"us-mo",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(o){const t=o,l=e.computed(()=>512+2*t.strokeWidth),c=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:`${c.value} ${c.value} ${l.value} ${l.value}`},[r,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:a.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,h)])],8,i))}});exports.default=m; //# sourceMappingURL=us-mo-e7f29492.cjs.map