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.78 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=["viewBox"],i=e.createElementVNode("mask",{id:"c31acc17-9ebe-4352-ad40-61a8a6f9d2ef"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#c31acc17-9ebe-4352-ad40-61a8a6f9d2ef)"},d={key:0},n=e.createStaticVNode('<path fill="#ffda44" d="M0 256 256 0h256v512H0z"></path><path fill="#eee" d="M0 0v32l32 32L0 96v160h32l32-32 32 32h32l42-16 41 16h45l-8-16 8-15v-14l-16-42 16-41V96l-32-32 32-32V0H96L64 32 32 0Z"></path><path fill="#0052b4" d="M128 256v-83l83 83zm128-45-83-83h83z"></path><path fill="#d80027" d="m128 128 128 128v-31l-97-97Z"></path><path fill="#d80027" d="M32 0v32H0v64h32v160h64V96h160V32H96V0Z"></path><circle cx="64" cy="64" r="48" fill="#0052b4"></circle><path fill="#ffda44" d="m50 198 14-44 15 44-38-27h47zM162 86l14-44 15 44-38-27h47ZM64 17l28 86-73-53h90l-73 53Z"></path>',7),h={fill:"none"},f=["r"],m=e.defineComponent({__name:"nu",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),a=e.computed(()=>256+t.strokeWidth/2);return(p,u)=>(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:a.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,f)])],8,r))}});exports.default=m; //# sourceMappingURL=nu-5bc40760.cjs.map