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
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=["viewBox"],r=e.createElementVNode("mask",{id:"aebc1ef4-29d5-473a-8b0d-ff22abe23866"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),i={mask:"url(#aebc1ef4-29d5-473a-8b0d-ff22abe23866)"},s={key:0},n=e.createStaticVNode('<path fill="#6da544" d="M31.4 0H512v512H31.4z"></path><path fill="#ffda44" d="M57.8 73.3H512v73.3l-65.1 110 65.1 110v73.3H57.8z"></path><path fill="#d80027" d="M132 146.6h380v73.3l-27 36 27 37.3v73.3H132z"></path><path fill="#eee" d="M0 0v512l279.8-256z"></path><path fill="#d80027" d="m103 189.2 16.5 51h53.6l-43.4 31.6 16.6 51-43.4-31.5-43.4 31.5 16.6-51-43.4-31.6h53.6z"></path><path fill="#ffda44" d="m148.5 260.2-43.2-15.3-3.4-31a16.7 16.7 0 1 0-32.5 7.6l-12 12.1h21.5c0 22.4-16.7 22.4-16.7 44.7l9.2 22.2h55.7l9.3-22.2a22.2 22.2 0 0 0 1.7-6.6c8-3.2 10.4-11.5 10.4-11.5z"></path><path fill="#333" d="m31.4 0 220 220H512v73.2H250.2L31.4 512H0l256-256L0 0z"></path>',7),h={fill:"none"},f=["r"],p=e.defineComponent({__name:"zw",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,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}`},[r,e.createElementVNode("g",i,[t.flagName?(e.openBlock(),e.createElementBlock("title",s,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,d))}});exports.default=p;
//# sourceMappingURL=zw-2ba1a92e.cjs.map