vue-circle-flags
Version:
A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags
54 lines (53 loc) • 2.09 kB
JavaScript
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeStyle as a, openBlock as o, toDisplayString as s } from "vue";
//#region src/components/flags/fr-20r.vue?vue&type=script&setup=true&lang.ts
var c = ["viewBox"], l = /*#__PURE__*/ r("mask", { id: "8a4dde31-db39-44a3-a3fe-fb5e123cfdc2" }, [/*#__PURE__*/ r("circle", {
cx: "256",
cy: "256",
r: "256",
fill: "#fff"
})], -1), u = { mask: "url(#8a4dde31-db39-44a3-a3fe-fb5e123cfdc2)" }, d = { key: 0 }, f = /*#__PURE__*/ r("path", {
fill: "#eee",
d: "M0 0h512v512H0z"
}, null, -1), p = /*#__PURE__*/ r("path", {
fill: "#333",
d: "M345.1 216.8A98 98 0 0 0 157.5 177l-12 43.8 11 11.2-22.2 44.5 22.3 11.1-11.2 11.1V310l11.2 11.1v22.3l11.1 11 33.4-11s0 11 11.1 22.2 22.3 33.4 22.3 33.4 33.4 11.1 55.6-22.2c22.3-33.4 44.6-44.6 44.6-44.6l-21.5-42.9a98 98 0 0 0 32-72.4z"
}, null, -1), m = /*#__PURE__*/ r("path", {
fill: "#acabb1",
d: "M353.1 254.3c45.3-7.6 52.8-96.2 52.8-96.2h-62.3c32.2 78-1.5 83.2-1.5 83.2a8110 8110 0 0 0-173.6-83c-1.3 1.7-5.9 6-11.5 19.8-5.6 13.7-7 26-7 26a6870 6870 0 0 0 181.2 63c9.2 5.9 20.4 23.7 14.1 76.6l60-16.9s-20.4-54.1-52.2-72.5z"
}, null, -1), h = { fill: "none" }, g = ["r"], _ = /* @__PURE__ */ i({
__name: "fr-20r",
props: {
flagName: {},
strokeColor: { default: "#000" },
strokeWidth: { default: 0 }
},
setup(i) {
let _ = i, v = e(() => 512 + 2 * _.strokeWidth), y = e(() => -_.strokeWidth), b = e(() => 256 + _.strokeWidth / 2);
return (e, i) => (o(), n("svg", {
xmlns: "http://www.w3.org/2000/svg",
class: "svg-circle-flags",
viewBox: `${y.value} ${y.value} ${v.value} ${v.value}`
}, [
l,
r("g", u, [
_.flagName ? (o(), n("title", d, s(_.flagName), 1)) : t("", !0),
f,
p,
m
]),
r("g", h, [r("circle", {
cx: "256",
cy: "256",
r: b.value,
fill: "none",
style: a({
stroke: _.strokeColor,
strokeWidth: _.strokeWidth
})
}, null, 12, g)])
], 8, c));
}
});
//#endregion
export { _ as default };
//# sourceMappingURL=fr-20r-BqhNofdk.js.map