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.73 kB
JavaScript
import { defineComponent as f, computed as t, openBlock as a, createElementBlock as i, createElementVNode as l, toDisplayString as h, createCommentVNode as d, normalizeStyle as n, createStaticVNode as m } from "vue";
const p = ["viewBox"], _ = /* @__PURE__ */ l("mask", { id: "f75739b9-03c8-4019-9922-bf81fdb67c69" }, [
/* @__PURE__ */ l("circle", {
cx: "256",
cy: "256",
r: "256",
fill: "#fff"
})
], -1), v = { mask: "url(#f75739b9-03c8-4019-9922-bf81fdb67c69)" }, z = { key: 0 }, u = /* @__PURE__ */ m('<path fill="#eee" d="m0 170 256-64 256 64v172l-256 64L0 342Z"></path><path fill="#d80027" d="M0 0h512v170H0Z"></path><path fill="#0052b4" d="M0 342h512v170H0Z"></path><circle cx="256" cy="256" r="160" fill="#0052b4"></circle><circle cx="256" cy="256" r="104" fill="#eee"></circle><path fill="#eee" d="m240 148.4 41.6-30h-51.2l41.6 30-16-48.8zM363.6 240l30 41.6v-51.2l-30 41.6 48.8-16zM272 363.6l-41.6 30h51.2l-41.6-30 16 48.8zM148.4 272l-30-41.6v51.2l30-41.6-48.8 16zm147.5-117.2 51.1-5.2-44.4-25.6 21.1 46.8 10.5-50.3zm61.3 141.1 5.2 51.1 25.6-44.4-46.8 21.1 50.2 10.5zm-141.1 61.3-51.1 5.2 44.4 25.6-21.1-46.8-10.5 50.2zm-61.3-141.1-5.2-51.1-25.6 44.4 46.8-21.1-50.2-10.5Zm186.4-27.8 46.8 21.1-25.6-44.4-5.2 51.1 34.3-38.3zm-17.5 152.9L302.6 388l44.4-25.6-51.1-5.2 38.3 34.2zm-152.9-17.5L124 302.6l25.6 44.4 5.2-51.1-34.3 38.3zm17.5-152.9 21.1-46.8-44.4 25.6 51.1 5.2-38.3-34.2z"></path><path fill="#338af3" d="M256 168a88 88 0 0 0-74.9 42H331a88 88 0 0 0-75-42z"></path><circle cx="256" cy="280" r="56" fill="#ff9811"></circle><path fill="#eee" d="M288 280a32 32 0 0 1-32 32l-16-32 16-32a32 32 0 0 1 32 32z"></path><path fill="#0052b4" d="M256 248a32 32 0 0 0-32 32l16 16 16-16z"></path><path fill="#d80027" d="M256 312a32 32 0 0 1-32-32h32z"></path>', 11), k = { fill: "none" }, g = ["r"], M = /* @__PURE__ */ f({
__name: "us-mo",
props: {
flagName: {},
strokeColor: { default: "#000" },
strokeWidth: { default: 0 }
},
setup(r) {
const e = r, c = t(() => 512 + 2 * e.strokeWidth), o = t(() => -e.strokeWidth), s = t(() => 256 + e.strokeWidth / 2);
return (x, b) => (a(), i("svg", {
xmlns: "http://www.w3.org/2000/svg",
class: "svg-circle-flags",
viewBox: `${o.value} ${o.value} ${c.value} ${c.value}`
}, [
_,
l("g", v, [
e.flagName ? (a(), i("title", z, h(e.flagName), 1)) : d("", !0),
u
]),
l("g", k, [
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 {
M as default
};
//# sourceMappingURL=us-mo-fd7e0b56.js.map