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.35 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/united_nations.vue?vue&type=script&setup=true&lang.ts var l = ["viewBox"], u = /*#__PURE__*/ r("mask", { id: "dabae478-38be-4722-999d-5b07d9697679" }, [/*#__PURE__*/ r("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" })], -1), d = { mask: "url(#dabae478-38be-4722-999d-5b07d9697679)" }, f = { key: 0 }, p = /*#__PURE__*/ i("<path fill=\"#338af3\" d=\"M0 0h512v512H0z\"></path><circle cx=\"256\" cy=\"256\" r=\"145\" fill=\"#eee\"></circle><circle cx=\"256\" cy=\"256\" r=\"111\" fill=\"#338af3\"></circle><path fill=\"#338af3\" d=\"M76 76h360L256 256z\"></path><circle cx=\"256\" cy=\"256\" r=\"89\" fill=\"#eee\"></circle><circle cx=\"256\" cy=\"256\" r=\"69\" fill=\"#338af3\"></circle><path fill=\"#eee\" d=\"M246 178h20v156h-20z\"></path><path fill=\"#eee\" d=\"M334 246v20H178v-20z\"></path><path fill=\"#eee\" d=\"m304 193.7 14.2 14.2-110.3 110.3-14.2-14.1z\"></path><path fill=\"#eee\" d=\"m318.2 304-14.1 14.2-110.4-110.3 14.2-14.2z\"></path><circle cx=\"256\" cy=\"256\" r=\"44\" fill=\"#eee\"></circle><circle cx=\"256\" cy=\"256\" r=\"22\" fill=\"#338af3\"></circle><ellipse cx=\"256\" cy=\"412\" fill=\"#eee\" rx=\"44\" ry=\"40\"></ellipse><path fill=\"#338af3\" d=\"m256 407-78 63h156z\"></path>", 14), m = { fill: "none" }, h = ["r"], g = /* @__PURE__ */ a({ __name: "united_nations", 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=united_nations-wjpxD-FH.js.map