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"],i=e.createElementVNode("mask",{id:"6e9d9f78-1900-42a9-8cda-a747ba90a46f"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#6e9d9f78-1900-42a9-8cda-a747ba90a46f)"},d={key:0},n=e.createStaticVNode('<path fill="#d80027" d="M0 0h512v256l-265 45.2z"></path><path fill="#0052b4" d="M210 256h302v256H0z"></path><path fill="#eee" d="M0 0v512l256-256z"></path><g fill="#ffda44"><path d="M28 256a73.1 73.1 0 0 0-.2 5.6 72.3 72.3 0 1 0 144.5-5.6z"></path><circle cx="100.2" cy="200.3" r="22.3"></circle></g><path fill="#d80027" d="M50 194.8V267c0 38.4 50.2 50 50.2 50s50-11.6 50-50v-72.3h-100z"></path><path fill="#338af3" d="M100.2 294c-9.3-3.4-28-12-28-27v-50H128v50c0 15-18.6 23.6-27.8 26.9z"></path><path fill="#eee" d="M111.3 244.9v-11.2l-11.1-5.5-11.2 5.5V245l-5.5 5.5v22.3h33.4v-22.3z"></path>',7),h={fill:"none"},f=["r"],p=e.defineComponent({__name:"sx",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(a){const t=a,l=e.computed(()=>512+2*t.strokeWidth),o=e.computed(()=>-t.strokeWidth),c=e.computed(()=>256+t.strokeWidth/2);return(m,v)=>(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}`},[i,e.createElementVNode("g",s,[t.flagName?(e.openBlock(),e.createElementBlock("title",d,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),n]),e.createElementVNode("g",h,[e.createElementVNode("circle",{cx:"256",cy:"256",r:c.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,f)])],8,r))}});exports.default=p; //# sourceMappingURL=sx-63dd1b8b.cjs.map