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.79 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=["viewBox"],s=e.createElementVNode("mask",{id:"a6bcadd4-241c-4232-ab7e-78eaed3ddca3"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),n={mask:"url(#a6bcadd4-241c-4232-ab7e-78eaed3ddca3)"},d={key:0},i=e.createElementVNode("path",{fill:"#eee",d:"M0 0h512v512H0z"},null,-1),h=e.createElementVNode("path",{fill:"#333",d:"M256 112c-22 0-40 18-40 40-7-12-20-20-34-20a40 40 0 1 0 0 80h6v126h-2c-10 0-20 8-20 20v16c0 10 10 20 20 20h2v2c0 12 10 20 20 20h96c12 0 20-8 20-20v-2h2c12 0 20-10 20-20v-16c0-12-8-20-20-20h-2V212h6a40 40 0 1 0 0-80c-14 1-27 9-34 22v-2c0-22-18-40-40-40z"},null,-1),m=e.createElementVNode("rect",{width:"224",height:"32",x:"144",y:"448",fill:"#acabb1",rx:"16",ry:"16"},null,-1),u=e.createElementVNode("rect",{width:"192",height:"48",x:"160",y:"32",fill:"#acabb1",rx:"24",ry:"24"},null,-1),_={fill:"none"},v=["r"],f=e.defineComponent({__name:"in-as",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(l){const t=l,o=e.computed(()=>512+2*t.strokeWidth),c=e.computed(()=>-t.strokeWidth),a=e.computed(()=>256+t.strokeWidth/2);return(g,k)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"svg-circle-flags",viewBox:`${c.value} ${c.value} ${o.value} ${o.value}`},[s,e.createElementVNode("g",n,[t.flagName?(e.openBlock(),e.createElementBlock("title",d,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),i,h,m,u]),e.createElementVNode("g",_,[e.createElementVNode("circle",{cx:"256",cy:"256",r:a.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,v)])],8,r))}});exports.default=f; //# sourceMappingURL=in-as-1fd0be4f.cjs.map