UNPKG

vue-circle-flags

Version:

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

44 lines (43 loc) 2.76 kB
import { defineComponent as h, computed as l, openBlock as c, createElementBlock as s, createElementVNode as t, toDisplayString as n, createCommentVNode as f, normalizeStyle as d, createStaticVNode as v } from "vue"; const p = ["viewBox"], m = /* @__PURE__ */ t("mask", { id: "f5aa8007-3424-4830-8a56-72c3b5fc9020" }, [ /* @__PURE__ */ t("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" }) ], -1), _ = { mask: "url(#f5aa8007-3424-4830-8a56-72c3b5fc9020)" }, u = { key: 0 }, g = /* @__PURE__ */ v('<path fill="#0052b4" d="M0 0h170l64 256-64 256H0Z"></path><path fill="#ffda44" d="M170 0h342v512H170z"></path><path fill="#eee" d="m136 189 7 14.7 15.9-3.7-7.2 14.7 12.7 10-15.9 3.7v16.3l-12.6-10.2-12.7 10.2v-16.3l-15.9-3.6 12.8-10.1L113 200l15.9 3.7zm-45-43 7 14.7 15.9-3.7-7.2 14.7 12.7 10-15.9 3.7v16.3l-12.6-10.2-12.7 10.2v-16.3l-15.9-3.6 12.8-10.1L68 157l15.9 3.7zm19 92 5.6 17h17.8l-14.5 10.5 5.5 17-14.5-10.5-14.4 10.5 5.5-17L86.5 255h18zm-70-34 7 14.7 15.9-3.7-7.2 14.7 12.7 10-15.9 3.7v16.3l-12.6-10.2-12.7 10.2v-16.3l-15.9-3.6 12.8-10.1L17 215l15.9 3.7zm51 99-6 17-17-8 8 17-17 6 17 6-8 17 17-8 6 17 6-17 17 8-8-17 17-6-17-6 8-17-17 8z"></path><g transform="translate(0 22)"><path fill="#0052b4" d="M276 200a17 17 0 0 0-17 17h-51a17 17 0 0 0 17 17 17 17 0 0 0 17 17 17 17 0 0 0 17 17h71v-68z"></path><path fill="#eee" d="M384 200a17 17 0 0 1 17 17h51a17 17 0 0 1-17 17 17 17 0 0 1-17 17 17 17 0 0 1-17 17h-71v-68z"></path><path fill="#0052b4" d="M285.5 200v68c0 34 44.5 44 44.5 44s44.5-10 44.5-44v-68z"></path><path fill="#eee" d="m294.4 204-2.5 7.5 26.8 10-26.8 10 2.5 7.5 35.6-13.3 35.7 13.3 2.5-7.5-26.9-10 26.9-10-2.5-7.5-35.7 13.3zm25 31.2V254h-6.2v-9.2h-15V284h63.7v-38.8h-15v8.8h-7.5v-18.8z"></path><circle cx="330" cy="297.2" r="9" fill="#eee"></circle></g>', 4), k = { fill: "none" }, z = ["r"], N = /* @__PURE__ */ h({ __name: "au-act", props: { flagName: {}, strokeColor: { default: "#000" }, strokeWidth: { default: 0 } }, setup(i) { const e = i, a = l(() => 512 + 2 * e.strokeWidth), o = l(() => -e.strokeWidth), r = l(() => 256 + e.strokeWidth / 2); return (x, w) => (c(), s("svg", { xmlns: "http://www.w3.org/2000/svg", class: "svg-circle-flags", viewBox: `${o.value} ${o.value} ${a.value} ${a.value}` }, [ m, t("g", _, [ e.flagName ? (c(), s("title", u, n(e.flagName), 1)) : f("", !0), g ]), t("g", k, [ t("circle", { cx: "256", cy: "256", r: r.value, fill: "none", style: d({ stroke: e.strokeColor, strokeWidth: e.strokeWidth }) }, null, 12, z) ]) ], 8, p)); } }); export { N as default }; //# sourceMappingURL=au-act-a391eaac.js.map