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.46 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=["viewBox"],r=e.createElementVNode("mask",{id:"ba5876b4-e1db-45ed-8daa-2afabd6e1d50"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),s={mask:"url(#ba5876b4-e1db-45ed-8daa-2afabd6e1d50)"},n={key:0},i=e.createElementVNode("path",{fill:"#d80027",d:"m96 357 208-32 208 32v155H96l-32-78Z"},null,-1),m=e.createElementVNode("path",{fill:"#496e2d",d:"M96 0h416v293l-208 32-208-32-32-147Z"},null,-1),u=e.createElementVNode("path",{fill:"#eee",d:"M0 0v512h96V357h416v-64H96V0Z"},null,-1),_={fill:"none"},h=["r"],f=e.defineComponent({__name:"ru-ce",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(c){const t=c,o=e.computed(()=>512+2*t.strokeWidth),l=e.computed(()=>-t.strokeWidth),a=e.computed(()=>256+t.strokeWidth/2);return(v,k)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"svg-circle-flags",viewBox:`${l.value} ${l.value} ${o.value} ${o.value}`},[r,e.createElementVNode("g",s,[t.flagName?(e.openBlock(),e.createElementBlock("title",n,e.toDisplayString(t.flagName),1)):e.createCommentVNode("",!0),i,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,h)])],8,d))}});exports.default=f; //# sourceMappingURL=ru-ce-a87f12d1.cjs.map