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) • 2.18 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=["viewBox"],f=e.createElementVNode("mask",{id:"35044651-0b66-43d4-80d9-af0944f8431f"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),a={mask:"url(#35044651-0b66-43d4-80d9-af0944f8431f)"},d={key:0},s=e.createStaticVNode('<path fill="#d80027" d="M0 0h512v512H0z"></path><circle cx="256" cy="64" r="32" fill="#ffda44"></circle><circle cx="64" cy="256" r="32" fill="#ffda44"></circle><circle cx="448" cy="256" r="32" fill="#ffda44"></circle><circle cx="256" cy="448" r="32" fill="#ffda44"></circle><circle cx="352" cy="400" r="32" fill="#ffda44"></circle><circle cx="400" cy="352" r="32" fill="#ffda44"></circle><circle cx="352" cy="112" r="32" fill="#ffda44"></circle><circle cx="400" cy="160" r="32" fill="#ffda44"></circle><circle cx="160" cy="112" r="32" fill="#ffda44"></circle><circle cx="112" cy="160" r="32" fill="#ffda44"></circle><circle cx="112" cy="352" r="32" fill="#ffda44"></circle><circle cx="160" cy="400" r="32" fill="#ffda44"></circle><path fill="#ffda44" d="m256 60-103 52 20 61-61-20-52 103 52 103 61-20-20 61 103 52 103-52-20-61 61 20 52-103-52-103-61 20 20-61zm0 36 64 32-32 96 96-32 32 64-32 64-96-32 32 96-64 32-64-32 32-96-96 32-32-64 32-64 96 32-32-96z"></path>',14),n={fill:"none"},m=["r"],u=e.defineComponent({__name:"occitania",props:{flagName:{},strokeColor:{default:"#000"},strokeWidth:{default:0}},setup(r){const c=r,l=e.computed(()=>512+2*c.strokeWidth),t=e.computed(()=>-c.strokeWidth),i=e.computed(()=>256+c.strokeWidth/2);return(h,y)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"svg-circle-flags",viewBox:`${t.value} ${t.value} ${l.value} ${l.value}`},[f,e.createElementVNode("g",a,[c.flagName?(e.openBlock(),e.createElementBlock("title",d,e.toDisplayString(c.flagName),1)):e.createCommentVNode("",!0),s]),e.createElementVNode("g",n,[e.createElementVNode("circle",{cx:"256",cy:"256",r:i.value,fill:"none",style:e.normalizeStyle({stroke:c.strokeColor,strokeWidth:c.strokeWidth})},null,12,m)])],8,o))}});exports.default=u;
//# sourceMappingURL=occitania-0ec23812.cjs.map