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.87 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=["viewBox"],r=e.createElementVNode("mask",{id:"38023d11-b5ed-44ff-9f7f-4b069842c861"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),a={mask:"url(#38023d11-b5ed-44ff-9f7f-4b069842c861)"},d={key:0},i=e.createElementVNode("path",{fill:"#d80027",d:"m0 0 216.9 301.6L512 512V0z"},null,-1),f=e.createElementVNode("path",{fill:"#ffda44",d:"m0 0 512 512H0z"},null,-1),m=e.createElementVNode("path",{fill:"#ff9811",d:"M320.4 320.4A38.9 38.9 0 0 1 272 265l-3.2-1.7a72.5 72.5 0 0 0 30.5-125l-23.3 24a38.9 38.9 0 0 1-23.8 69.5v3.6a72.5 72.5 0 0 0-123.2 36l32.4 8.2a38.9 38.9 0 0 1 72-14l3.2-2a72.5 72.5 0 0 0 92.7 89l-9-32.3zM252.7 254z"},null,-1),u=e.createElementVNode("path",{fill:"#eee",d:"M348.2 170.8 330 235.4l-54.3-10-35-72.1-94.4 33.5-7.4-21-24.7-3 18.6 52.4 65-16.6 18.4 52-45 66.3 76.4 65-14.5 17 9.7 22.9 36-42.4-46.7-48 35.8-42 79.8 5.8 18.2-98.5 22 4 15-19.8zM253.4 255z"},null,-1),_={fill:"none"},h=["r"],p=e.defineComponent({__name:"it-82",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(c){const t=c,l=e.computed(()=>512+2*t.strokeWidth),o=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:`${o.value} ${o.value} ${l.value} ${l.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=it-82-36a33e58.cjs.map