UNPKG

vue-circle-flags

Version:

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

55 lines (54 loc) 2.37 kB
import { defineComponent as n, computed as l, openBlock as a, createElementBlock as c, createElementVNode as e, toDisplayString as h, createCommentVNode as d, normalizeStyle as m } from "vue"; const v = ["viewBox"], f = /* @__PURE__ */ e("mask", { id: "660125ae-f403-413c-adad-c3d5eb28f059" }, [ /* @__PURE__ */ e("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" }) ], -1), _ = { mask: "url(#660125ae-f403-413c-adad-c3d5eb28f059)" }, u = { key: 0 }, z = /* @__PURE__ */ e("path", { fill: "#eee", d: "M0 0h512v512H0z" }, null, -1), k = /* @__PURE__ */ e("path", { fill: "#0052b4", d: "M204 296v16h-40v32h40v-16h104v16h40v-32h-40v-16z" }, null, -1), p = /* @__PURE__ */ e("path", { fill: "#ffda44", d: "m236 107 52-38h-64l52 38-20-61zm170 129 37 52v-64l-37 52 61-20zM276 406l-52 37h64l-52-37 20 61zM107 276l-38-52v64l38-52-61 20zm206-159 64-7-55-32 26 59 13-63zm83 196 6 64 32-55-59 26 63 13zm-197 83-64 6 55 32-26-59-13 63zm-82-197-7-64-32 55 59-26-63-13Zm259-35 58 26-32-55-7 64 43-48zm-28 212-26 58 55-32-64-7 48 43zm-211-28-59-26 32 55 6-64-42 48zm27-211 26-59-55 32 64 6-48-42zm92-3a24 24 0 0 0-24 24 24 24 0 0 0 16 23v17h-16v16h16v39c-20-2-30-15-33-18l11-11h-32v32l10-10a68 68 0 0 0 104 0l10 10v-32h-32l11 11c-3 3-13 16-33 18v-39h16v-16h-16v-17a24 24 0 0 0 16-23 24 24 0 0 0-24-24zm0 16a8 8 0 0 1 8 8 8 8 0 0 1-8 8 8 8 0 0 1-8-8 8 8 0 0 1 8-8z" }, null, -1), g = { fill: "none" }, x = ["r"], B = /* @__PURE__ */ n({ __name: "us-ri", props: { flagName: {}, strokeColor: { default: "#000" }, strokeWidth: { default: 0 } }, setup(i) { const t = i, o = l(() => 512 + 2 * t.strokeWidth), s = l(() => -t.strokeWidth), r = l(() => 256 + t.strokeWidth / 2); return (w, y) => (a(), c("svg", { xmlns: "http://www.w3.org/2000/svg", class: "svg-circle-flags", viewBox: `${s.value} ${s.value} ${o.value} ${o.value}` }, [ f, e("g", _, [ t.flagName ? (a(), c("title", u, h(t.flagName), 1)) : d("", !0), z, k, p ]), e("g", g, [ e("circle", { cx: "256", cy: "256", r: r.value, fill: "none", style: m({ stroke: t.strokeColor, strokeWidth: t.strokeWidth }) }, null, 12, x) ]) ], 8, v)); } }); export { B as default }; //# sourceMappingURL=us-ri-08de4ea2.js.map