UNPKG

vue-circle-flags

Version:

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

58 lines (57 loc) 2.94 kB
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/guarani.vue?vue&type=script&setup=true&lang.ts var c = ["viewBox"], l = /*#__PURE__*/ r("mask", { id: "6deffaed-a4af-460b-ad88-df651236a228" }, [/*#__PURE__*/ r("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" })], -1), u = { mask: "url(#6deffaed-a4af-460b-ad88-df651236a228)" }, d = { key: 0 }, f = /*#__PURE__*/ r("path", { fill: "#eee", d: "m0 167 256-32 256 32v178l-256 32L0 345Z" }, null, -1), p = /*#__PURE__*/ r("path", { fill: "#d80027", d: "M0 0h512v167H0Z" }, null, -1), m = /*#__PURE__*/ r("path", { fill: "#0052b4", d: "M0 345h512v167H0Z" }, null, -1), h = /*#__PURE__*/ r("path", { fill: "#333", d: "M256 80A176 176 0 0 0 80 256a176 176 0 0 0 176 176 176 176 0 0 0 176-176A176 176 0 0 0 256 80Zm0 16a160 160 0 0 1 160 160 160 160 0 0 1-160 160A160 160 0 0 1 96 256 160 160 0 0 1 256 96Zm0 7a32 32 0 0 0-32 32 32 32 0 0 0 20 30v28a64 64 0 0 0-24 10l-20-20a32 32 0 0 0-7-35 32 32 0 0 0-23-10 32 32 0 0 0-22 10 32 32 0 0 0 0 45 32 32 0 0 0 35 7l20 20a64 64 0 0 0-10 24h-29a32 32 0 0 0-29-20 32 32 0 0 0-32 32 32 32 0 0 0 32 32 32 32 0 0 0 29-20h29a64 64 0 0 0 10 24l-20 20a32 32 0 0 0-35 7 32 32 0 0 0 0 45 32 32 0 0 0 45 0 32 32 0 0 0 7-35l20-20a64 64 0 0 0 24 10v28a32 32 0 0 0-20 30 32 32 0 0 0 32 32 32 32 0 0 0 32-32 32 32 0 0 0-20-30v-28a64 64 0 0 0 24-10l20 20a32 32 0 0 0 7 35 32 32 0 0 0 45 0 32 32 0 0 0 0-45 32 32 0 0 0-35-7l-20-20a64 64 0 0 0 10-24h28a32 32 0 0 0 30 20 32 32 0 0 0 32-32 32 32 0 0 0-32-32 32 32 0 0 0-30 20h-28a64 64 0 0 0-10-24l20-20a32 32 0 0 0 35-7 32 32 0 0 0 0-45 32 32 0 0 0-22-10 32 32 0 0 0-23 10 32 32 0 0 0-7 35l-20 20a64 64 0 0 0-24-10v-28a32 32 0 0 0 20-30 32 32 0 0 0-32-32Zm0 105a48 48 0 0 1 48 48 48 48 0 0 1-48 48 48 48 0 0 1-48-48 48 48 0 0 1 48-48zm0 16a32 32 0 0 0-32 32 32 32 0 0 0 32 32 32 32 0 0 0 32-32 32 32 0 0 0-32-32z" }, null, -1), g = { fill: "none" }, _ = ["r"], v = /* @__PURE__ */ i({ __name: "guarani", props: { flagName: {}, strokeColor: { default: "#000" }, strokeWidth: { default: 0 } }, setup(i) { let v = i, y = e(() => 512 + 2 * v.strokeWidth), b = e(() => -v.strokeWidth), x = e(() => 256 + v.strokeWidth / 2); return (e, i) => (o(), n("svg", { xmlns: "http://www.w3.org/2000/svg", class: "svg-circle-flags", viewBox: `${b.value} ${b.value} ${y.value} ${y.value}` }, [ l, r("g", u, [ v.flagName ? (o(), n("title", d, s(v.flagName), 1)) : t("", !0), f, p, m, h ]), r("g", g, [r("circle", { cx: "256", cy: "256", r: x.value, fill: "none", style: a({ stroke: v.strokeColor, strokeWidth: v.strokeWidth }) }, null, 12, _)]) ], 8, c)); } }); //#endregion export { v as default }; //# sourceMappingURL=guarani-BPijgdGX.js.map