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.61 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=["viewBox"],a=e.createElementVNode("mask",{id:"d5f019a1-0318-4bc3-8a1e-83e71774c63b"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#d5f019a1-0318-4bc3-8a1e-83e71774c63b)"},n={key:0},d=e.createStaticVNode('<path fill="#0052b4" d="M448 0h64v512h-64l-16-256Z"></path><path fill="#eee" d="M416 0h32v512h-32l-16-256Z"></path><path fill="#d80027" d="M0 0h416v512H0z"></path><circle cx="208" cy="256" r="160" fill="#eee"></circle><circle cx="208" cy="256" r="128" fill="#0052b4"></circle><path fill="#eee" d="m145 284 60 83V265l-60 83 98-32zm15-128-22 100 76-68-102 11 89 51zm147 49-42 93-21-100 75 69-102-11z"></path>',6),h={fill:"none"},m=["r"],f=e.defineComponent({__name:"us-tn",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),r=e.computed(()=>256+t.strokeWidth/2);return(u,p)=>(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}`},[a,e.createElementVNode("g",s,[t.flagName?(e.openBlock(),e.createElementBlock("title",n,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),d]),e.createElementVNode("g",h,[e.createElementVNode("circle",{cx:"256",cy:"256",r:r.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,m)])],8,i))}});exports.default=f;
//# sourceMappingURL=us-tn-0302e941.cjs.map