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"),r=["viewBox"],s=e.createElementVNode("mask",{id:"ce2c9ac1-9ea2-494a-8484-840956f0bf38"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),i={mask:"url(#ce2c9ac1-9ea2-494a-8484-840956f0bf38)"},h={key:0},n=e.createStaticVNode('<path fill="#ffda44" d="M0 0h512v326.7l-19.3 76.5 19.3 77.7V512H0V185.2l21.4-76.5L0 31z"></path><path fill="#eee" d="M0 31v117.2l512 295.7V326.7L0 31z"></path><path fill="#333" d="M0 108.2v77L512 481v-77L0 108.2z"></path><g fill="#d80027"><path d="M328.3 228.2a72.3 72.3 0 1 1-136-34.4 89 89 0 1 0 127.3 0 72 72 0 0 1 8.7 34.4z"></path><path d="M239.3 144.7h33.4v167h-33.4z"></path><path d="M311.6 178H200.4c0 7.8 6.6 14 14.3 14h-.4a14 14 0 0 0 13.9 14 14 14 0 0 0 13.9 13.8h27.8a14 14 0 0 0 14-13.9 14 14 0 0 0 13.8-13.9h-.4c7.6 0 14.3-6.2 14.3-13.9zM178.1 322.9h155.8v33.4H178.1z"></path><path d="M289.4 333.9h66.8v33.4h-66.8zm-133.6 0h66.8v33.4h-66.8z"></path></g>',4),d={fill:"none"},p=["r"],f=e.defineComponent({__name:"bn",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(l){const t=l,o=e.computed(()=>512+2*t.strokeWidth),a=e.computed(()=>-t.strokeWidth),c=e.computed(()=>256+t.strokeWidth/2);return(m,u)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"svg-circle-flags",viewBox:`${a.value} ${a.value} ${o.value} ${o.value}`},[s,e.createElementVNode("g",i,[t.flagName?(e.openBlock(),e.createElementBlock("title",h,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),n]),e.createElementVNode("g",d,[e.createElementVNode("circle",{cx:"256",cy:"256",r:c.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,p)])],8,r))}});exports.default=f; //# sourceMappingURL=bn-fd589225.cjs.map