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.2 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/kikuyu.vue?vue&type=script&setup=true&lang.ts var l = ["viewBox"], u = /*#__PURE__*/ r("mask", { id: "686d08f1-4309-4949-8c58-cecedb3a4c2c" }, [/*#__PURE__*/ r("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" })], -1), d = { mask: "url(#686d08f1-4309-4949-8c58-cecedb3a4c2c)" }, f = { key: 0 }, p = /*#__PURE__*/ i("<path fill=\"#eee\" d=\"m228 0 32 211-32 211h-32l-32-211L196 0Z\"></path><path fill=\"#496e2d\" d=\"M196 0v450H0V0Z\"></path><path fill=\"#eee\" d=\"m178 87-31-14-49 112L49 73 18 87l62 138-62 138 31 14 49-112 49 112 31-14-62-138Z\"></path><path fill=\"#eee\" d=\"M98 80 81 96 65 224l16 130 17 16 17-16 15-131-15-127-17-16Z\"></path><path fill=\"#333\" d=\"m154 148-10 76 10 78a159 159 0 0 0 22-77c0-28-10-54-22-77zm-112 0 9 74-9 80a159 159 0 0 1-22-77c0-28 10-54 22-77z\"></path><path fill=\"#a2001d\" d=\"M42 148v154a269 269 0 0 0 39 52V96c-11 12-26 30-39 52zm112 0a269 269 0 0 0-39-52v258c11-12 26-30 39-52V148Z\"></path><path fill=\"#d80027\" d=\"M512 0v422H228V0Z\"></path><path fill=\"#333\" d=\"m0 450 86-17 75 8 55-51 41 18 106-56 149 70v90H0Z\"></path>", 8), m = { fill: "none" }, h = ["r"], g = /* @__PURE__ */ a({ __name: "kikuyu", 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=kikuyu-BRGp0uXK.js.map