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.53 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=["viewBox"],r=e.createElementVNode("mask",{id:"ad4d8181-2f99-4c4b-bd86-a57e119d4c72"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),n={mask:"url(#ad4d8181-2f99-4c4b-bd86-a57e119d4c72)"},a={key:0},i=e.createElementVNode("path",{fill:"#d80027",d:"m0 167 256-32 256 32v178l-256 32L0 345Z"},null,-1),m=e.createElementVNode("path",{fill:"#6da544",d:"M0 0h512v167H0zm0 345h512v167H0z"},null,-1),h=e.createElementVNode("path",{fill:"#ffda44",d:"m110 200 36 112-95-69h117l-94 69zm146 0 36 112-94-69h117l-95 69zm146 0 36 112-94-69h117l-95 69z"},null,-1),u={fill:"none"},_=["r"],f=e.defineComponent({__name:"ewe",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(k,p)=>(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,m,h]),e.createElementVNode("g",u,[e.createElementVNode("circle",{cx:"256",cy:"256",r:s.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,_)])],8,d))}});exports.default=f; //# sourceMappingURL=ewe-f328e389.cjs.map