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.57 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=["viewBox"],r=e.createElementVNode("mask",{id:"3592082c-ff37-4370-8ed6-9507e8890004"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),a={mask:"url(#3592082c-ff37-4370-8ed6-9507e8890004)"},i={key:0},d=e.createElementVNode("path",{fill:"#eee",d:"M0 63 63 0h449v449l-63 63H0z"},null,-1),m=e.createElementVNode("path",{fill:"#338af3",d:"M0 0v63l449 449h63v-63L63 0H0z"},null,-1),u=e.createElementVNode("path",{fill:"#d80027",d:"m211 181 46 16.4 44-16.4v-38l-18 9-27-27-27 27-18-9z"},null,-1),_=e.createElementVNode("path",{fill:"#0052b4",d:"M186 181v103a70 70 0 0 0 140 0V181z"},null,-1),f={fill:"none"},h=["r"],v=e.defineComponent({__name:"es-ga",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,k)=>(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",a,[t.flagName?(e.openBlock(),e.createElementBlock("title",i,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),d,m,u,_]),e.createElementVNode("g",f,[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,n))}});exports.default=v; //# sourceMappingURL=es-ga-d1ccde7e.cjs.map