UNPKG

vue-circle-flags

Version:

A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags

44 lines (43 loc) 2.67 kB
import { defineComponent as r, computed as t, openBlock as o, createElementBlock as i, createElementVNode as l, toDisplayString as d, createCommentVNode as f, normalizeStyle as n, createStaticVNode as m } from "vue"; const p = ["viewBox"], v = /* @__PURE__ */ l("mask", { id: "4f42b6f4-1a06-412c-ab42-9721248ae0e3" }, [ /* @__PURE__ */ l("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" }) ], -1), _ = { mask: "url(#4f42b6f4-1a06-412c-ab42-9721248ae0e3)" }, k = { key: 0 }, u = /* @__PURE__ */ m('<path fill="#496e2d" d="M0 0h208l48 32 48-32h208v208l-32 48 32 48v208H304l-48-32-48 32H0V304l32-48-32-48Z"></path><path fill="#333" d="M512 240v32l-256 32L0 272v-32l256-32z"></path><path fill="#ffda44" d="M512 208v32H0v-32z"></path><path fill="#333" d="M240 0h32l32 256-32 256h-32l-32-256Z"></path><path fill="#ffda44" d="M208 0h32v512h-32z"></path><path fill="#eee" d="M272 0h32v512h-32z"></path><path fill="#eee" d="M512 272v32H0v-32z"></path><circle cx="256" cy="256" r="122.4" fill="#d80027"></circle><path fill="#496e2d" d="M284 270c-9-19-21-37-21-37v-13a14 14 0 0 0-27-2 11 11 0 0 0-4 21 16 16 0 0 1 9-9 14 14 0 0 0 2 2h2s-7 19-7 29c0 27 19 36 19 36l-10 9h19v-18l9 9s17-11 9-27zm-28-114 4 13h14l-11 8 4 12-11-8-11 8 4-12-11-8h14Zm-59 19 11 8 11-8-4 13 11 8h-14l-4 12-4-12h-14l11-8zm-36 50h13l4-13 4 13h14l-11 8 4 13-11-8-11 8 5-13zm0 62 11-8-5-13 11 8 11-8-4 13 11 8h-14l-4 13-4-13Zm36 50 4-13-11-8h14l4-12 4 12h13l-10 8 4 13-11-8zm59 19-4-13h-14l11-8-4-12 11 8 11-8-4 12 11 9h-14Zm59-19-11-8-11 8 4-13-10-8h13l4-12 4 12h14l-11 8zm36-50h-13l-4 13-4-13h-14l11-8-4-13 11 8 11-8-5 13zm0-62-11 8 5 13-11-8-11 8 4-13-11-8h14l4-13 4 13zm-36-50-4 13 11 8h-14l-4 12-4-12h-14l11-8-4-13 11 8z"></path>', 9), z = { fill: "none" }, g = ["r"], y = /* @__PURE__ */ r({ __name: "dm", props: { flagName: {}, strokeColor: { default: "#000" }, strokeWidth: { default: 0 } }, setup(c) { const e = c, h = t(() => 512 + 2 * e.strokeWidth), a = t(() => -e.strokeWidth), s = t(() => 256 + e.strokeWidth / 2); return (x, M) => (o(), i("svg", { xmlns: "http://www.w3.org/2000/svg", class: "svg-circle-flags", viewBox: `${a.value} ${a.value} ${h.value} ${h.value}` }, [ v, l("g", _, [ e.flagName ? (o(), i("title", k, d(e.flagName), 1)) : f("", !0), u ]), l("g", z, [ l("circle", { cx: "256", cy: "256", r: s.value, fill: "none", style: n({ stroke: e.strokeColor, strokeWidth: e.strokeWidth }) }, null, 12, g) ]) ], 8, p)); } }); export { y as default }; //# sourceMappingURL=dm-52ee535e.js.map