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.22 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/au.vue?vue&type=script&setup=true&lang.ts
var c = ["viewBox"], l = /*#__PURE__*/ r("mask", { id: "4bede729-23dc-4fef-bda1-9f8d7b9c9895" }, [/*#__PURE__*/ r("circle", {
cx: "256",
cy: "256",
r: "256",
fill: "#fff"
})], -1), u = { mask: "url(#4bede729-23dc-4fef-bda1-9f8d7b9c9895)" }, d = { key: 0 }, f = /*#__PURE__*/ r("path", {
fill: "#0052b4",
d: "M0 0h512v512H0z"
}, null, -1), p = /*#__PURE__*/ r("path", {
fill: "#eee",
d: "m154 300 14 30 32-8-14 30 25 20-32 7 1 33-26-21-26 21 1-33-33-7 26-20-14-30 32 8zm222-27h47l-38 27 15-44 14 44zm7-162 7 15 16-4-7 15 12 10-15 3v17l-13-11-13 11v-17l-15-3 12-10-7-15 16 4zm57 67 7 15 16-4-7 15 12 10-15 3v16l-13-10-13 11v-17l-15-3 12-10-7-15 16 4zm-122 22 7 15 16-4-7 15 12 10-15 3v16l-13-10-13 11v-17l-15-3 12-10-7-15 16 4zm65 156 7 15 16-4-7 15 12 10-15 3v17l-13-11-13 11v-17l-15-3 12-10-7-15 16 4zM0 0v32l32 32L0 96v160h32l32-32 32 32h32v-83l83 83h45l-8-16 8-15v-14l-83-83h83V96l-32-32 32-32V0H96L64 32 32 0Z"
}, null, -1), m = /*#__PURE__*/ r("path", {
fill: "#d80027",
d: "M32 0v32H0v64h32v160h64V96h160V32H96V0Zm96 128 128 128v-31l-97-97z"
}, null, -1), h = { fill: "none" }, g = ["r"], _ = /* @__PURE__ */ i({
__name: "au",
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=au-DKYuEhcd.js.map