UNPKG

vue-circle-flags

Version:

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

40 lines (39 loc) 2.75 kB
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createStaticVNode as i, defineComponent as a, normalizeStyle as o, openBlock as s, toDisplayString as c } from "vue"; //#region src/components/flags/us-mo.vue?vue&type=script&setup=true&lang.ts var l = ["viewBox"], u = /*#__PURE__*/ r("mask", { id: "f75739b9-03c8-4019-9922-bf81fdb67c69" }, [/*#__PURE__*/ r("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" })], -1), d = { mask: "url(#f75739b9-03c8-4019-9922-bf81fdb67c69)" }, f = { key: 0 }, p = /*#__PURE__*/ i("<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), m = { fill: "none" }, h = ["r"], g = /* @__PURE__ */ a({ __name: "us-mo", props: { flagName: {}, strokeColor: { default: "#000" }, strokeWidth: { default: 0 } }, setup(i) { let a = i, g = e(() => 512 + 2 * a.strokeWidth), _ = e(() => -a.strokeWidth), v = e(() => 256 + a.strokeWidth / 2); return (e, i) => (s(), n("svg", { xmlns: "http://www.w3.org/2000/svg", class: "svg-circle-flags", viewBox: `${_.value} ${_.value} ${g.value} ${g.value}` }, [ u, r("g", d, [a.flagName ? (s(), n("title", f, c(a.flagName), 1)) : t("", !0), p]), r("g", m, [r("circle", { cx: "256", cy: "256", r: v.value, fill: "none", style: o({ stroke: a.strokeColor, strokeWidth: a.strokeWidth }) }, null, 12, h)]) ], 8, l)); } }); //#endregion export { g as default }; //# sourceMappingURL=us-mo-D_2dS1ay.js.map