UNPKG

vue-circle-flags

Version:

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

40 lines (39 loc) 2.13 kB
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createStaticVNode as i, defineComponent as a, normalizeStyle as o, openBlock as s, toDisplayString as c } from "vue"; //#region src/components/flags/zw.vue?vue&type=script&setup=true&lang.ts var l = ["viewBox"], u = /*#__PURE__*/ r("mask", { id: "aebc1ef4-29d5-473a-8b0d-ff22abe23866" }, [/*#__PURE__*/ r("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" })], -1), d = { mask: "url(#aebc1ef4-29d5-473a-8b0d-ff22abe23866)" }, f = { key: 0 }, p = /*#__PURE__*/ i("<path fill=\"#6da544\" d=\"M31.4 0H512v512H31.4z\"></path><path fill=\"#ffda44\" d=\"M57.8 73.3H512v73.3l-65.1 110 65.1 110v73.3H57.8z\"></path><path fill=\"#d80027\" d=\"M132 146.6h380v73.3l-27 36 27 37.3v73.3H132z\"></path><path fill=\"#eee\" d=\"M0 0v512l279.8-256z\"></path><path fill=\"#d80027\" d=\"m103 189.2 16.5 51h53.6l-43.4 31.6 16.6 51-43.4-31.5-43.4 31.5 16.6-51-43.4-31.6h53.6z\"></path><path fill=\"#ffda44\" d=\"m148.5 260.2-43.2-15.3-3.4-31a16.7 16.7 0 1 0-32.5 7.6l-12 12.1h21.5c0 22.4-16.7 22.4-16.7 44.7l9.2 22.2h55.7l9.3-22.2a22.2 22.2 0 0 0 1.7-6.6c8-3.2 10.4-11.5 10.4-11.5z\"></path><path fill=\"#333\" d=\"m31.4 0 220 220H512v73.2H250.2L31.4 512H0l256-256L0 0z\"></path>", 7), m = { fill: "none" }, h = ["r"], g = /* @__PURE__ */ a({ __name: "zw", props: { flagName: {}, strokeColor: { default: "#000" }, strokeWidth: { default: 0 } }, setup(i) { let a = i, g = e(() => 512 + 2 * a.strokeWidth), _ = e(() => -a.strokeWidth), v = e(() => 256 + a.strokeWidth / 2); return (e, i) => (s(), n("svg", { xmlns: "http://www.w3.org/2000/svg", class: "svg-circle-flags", viewBox: `${_.value} ${_.value} ${g.value} ${g.value}` }, [ u, r("g", d, [a.flagName ? (s(), n("title", f, c(a.flagName), 1)) : t("", !0), p]), r("g", m, [r("circle", { cx: "256", cy: "256", r: v.value, fill: "none", style: o({ stroke: a.strokeColor, strokeWidth: a.strokeWidth }) }, null, 12, h)]) ], 8, l)); } }); //#endregion export { g as default }; //# sourceMappingURL=zw-C0pC_hue.js.map