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.72 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=["viewBox"],s=e.createElementVNode("mask",{id:"0eeacbd3-fc09-47f7-823a-d88024ff8945"},[e.createElementVNode("circle",{cx:"256",cy:"256",r:"256",fill:"#fff"})],-1),i={mask:"url(#0eeacbd3-fc09-47f7-823a-d88024ff8945)"},d={key:0},n=e.createStaticVNode('<path fill="#0052b4" d="m0 128 256-32 256 32v256l-256 32L0 384Z"></path><path fill="#333" d="m0 96 256-32 256 32v32H0Z"></path><path fill="#6da544" d="M0 0h512v96H0Z"></path><path fill="#333" d="m0 416 256 32 256-32v-32H0Z"></path><path fill="#6da544" d="M0 512h512v-96H0Z"></path><path fill="#eee" d="M245 144c-106 32-101 112-67 186l-40 38 73-27v-98c24-35 66-35 90 0v98l73 27-40-38c34-74 39-154-67-186l-11 46-11-46zm11 83-9 27h-28l23 17-9 28 23-17 23 17-9-28 24-17h-29l-9-27z"></path>',6),h={fill:"none"},f=["r"],m=e.defineComponent({__name:"torres_strait_islands",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(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}`},[s,e.createElementVNode("g",i,[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:c.value,fill:"none",style:e.normalizeStyle({stroke:t.strokeColor,strokeWidth:t.strokeWidth})},null,12,f)])],8,r))}});exports.default=m;
//# sourceMappingURL=torres_strait_islands-d3a51a66.cjs.map