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.75 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=["viewBox"],r=e.createElementVNode("mask",{id:"954cbda6-fc92-4c47-99f4-176b208d5c61"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),a={mask:"url(#954cbda6-fc92-4c47-99f4-176b208d5c61)"},d={key:0},i=e.createElementVNode("path",{fill:"#0052b4",d:"M0 0h512v512H0Z"},null,-1),f=e.createElementVNode("path",{fill:"#fff",d:"m256 52 204 204-204 204L52 256Z"},null,-1),m=e.createElementVNode("path",{fill:"#ff9811",d:"m232 463 12-299h24l12 299z"},null,-1),u=e.createElementVNode("path",{fill:"#6da544",d:"M293 172c31-14 42-23 90-22-40-18-77-23-108 0 9-23 27-54 59-77-55 9-82 36-86 68-14-32-55-45-100-45 50 27 36 27 73 63-32-5-68 9-104 50 49-27 72-18 104-14a90 90 0 0 0-41 86c36-45 31-32 77-72 18 40 40 49 49 86 9-37 0-77-18-91 36 14 68 23 86 50-9-63-50-72-81-82z"},null,-1),_={fill:"none"},h=["r"],p=e.defineComponent({__name:"fr-cp",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,g)=>(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",d,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),i,f,m,u]),e.createElementVNode("g",_,[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=p; //# sourceMappingURL=fr-cp-91c083a3.cjs.map