vue-circle-flags
Version:
A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags
1 lines • 5.76 kB
Source Map (JSON)
{"version":3,"file":"us-mo-3EqnLsYY.cjs","names":[],"sources":["../src/components/flags/us-mo.vue","../src/components/flags/us-mo.vue"],"sourcesContent":["<template>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"svg-circle-flags\"\r\n :viewBox=\"`${viewBoxOrigin} ${viewBoxOrigin} ${svgSize} ${svgSize}`\"\r\n >\r\n <mask id=\"f75739b9-03c8-4019-9922-bf81fdb67c69\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#f75739b9-03c8-4019-9922-bf81fdb67c69)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#eee\" d=\"m0 170 256-64 256 64v172l-256 64L0 342Z\" />\r\n <path fill=\"#d80027\" d=\"M0 0h512v170H0Z\" />\r\n <path fill=\"#0052b4\" d=\"M0 342h512v170H0Z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"160\" fill=\"#0052b4\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"104\" fill=\"#eee\" />\r\n <path\r\n fill=\"#eee\"\r\n d=\"m240 148.4 41.6-30h-51.2l41.6 30-16-48.8zM363.6 240l30 41.6v-51.2l-30 41.6 48.8-16zM272 363.6l-41.6 30h51.2l-41.6-30 16 48.8zM148.4 272l-30-41.6v51.2l30-41.6-48.8 16zm147.5-117.2 51.1-5.2-44.4-25.6 21.1 46.8 10.5-50.3zm61.3 141.1 5.2 51.1 25.6-44.4-46.8 21.1 50.2 10.5zm-141.1 61.3-51.1 5.2 44.4 25.6-21.1-46.8-10.5 50.2zm-61.3-141.1-5.2-51.1-25.6 44.4 46.8-21.1-50.2-10.5Zm186.4-27.8 46.8 21.1-25.6-44.4-5.2 51.1 34.3-38.3zm-17.5 152.9L302.6 388l44.4-25.6-51.1-5.2 38.3 34.2zm-152.9-17.5L124 302.6l25.6 44.4 5.2-51.1-34.3 38.3zm17.5-152.9 21.1-46.8-44.4 25.6 51.1 5.2-38.3-34.2z\"\r\n />\r\n <path\r\n fill=\"#338af3\"\r\n d=\"M256 168a88 88 0 0 0-74.9 42H331a88 88 0 0 0-75-42z\"\r\n />\r\n <circle cx=\"256\" cy=\"280\" r=\"56\" fill=\"#ff9811\" />\r\n <path\r\n fill=\"#eee\"\r\n d=\"M288 280a32 32 0 0 1-32 32l-16-32 16-32a32 32 0 0 1 32 32z\"\r\n />\r\n <path fill=\"#0052b4\" d=\"M256 248a32 32 0 0 0-32 32l16 16 16-16z\" />\r\n <path fill=\"#d80027\" d=\"M256 312a32 32 0 0 1-32-32h32z\" />\r\n </g>\r\n <g fill=\"none\">\r\n <circle\r\n cx=\"256\"\r\n cy=\"256\"\r\n :r=\"circleStroke\"\r\n fill=\"none\"\r\n :style=\"{ stroke: props.strokeColor, strokeWidth: props.strokeWidth }\"\r\n />\r\n </g>\r\n </svg>\r\n</template>\r\n<script setup lang=\"ts\">\r\n import { computed } from 'vue';\r\n\r\n const props = withDefaults(\r\n defineProps<{\r\n flagName: string | undefined;\r\n strokeColor?: string;\r\n strokeWidth?: number;\r\n }>(),\r\n {\r\n strokeColor: '#000',\r\n strokeWidth: 0\r\n }\r\n );\r\n\r\n const svgSize = computed(() => 512 + 2 * props.strokeWidth),\r\n viewBoxOrigin = computed(() => -props.strokeWidth),\r\n circleStroke = computed(() => 256 + props.strokeWidth / 2);\r\n</script>\r\n","<template>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"svg-circle-flags\"\r\n :viewBox=\"`${viewBoxOrigin} ${viewBoxOrigin} ${svgSize} ${svgSize}`\"\r\n >\r\n <mask id=\"f75739b9-03c8-4019-9922-bf81fdb67c69\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#f75739b9-03c8-4019-9922-bf81fdb67c69)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#eee\" d=\"m0 170 256-64 256 64v172l-256 64L0 342Z\" />\r\n <path fill=\"#d80027\" d=\"M0 0h512v170H0Z\" />\r\n <path fill=\"#0052b4\" d=\"M0 342h512v170H0Z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"160\" fill=\"#0052b4\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"104\" fill=\"#eee\" />\r\n <path\r\n fill=\"#eee\"\r\n d=\"m240 148.4 41.6-30h-51.2l41.6 30-16-48.8zM363.6 240l30 41.6v-51.2l-30 41.6 48.8-16zM272 363.6l-41.6 30h51.2l-41.6-30 16 48.8zM148.4 272l-30-41.6v51.2l30-41.6-48.8 16zm147.5-117.2 51.1-5.2-44.4-25.6 21.1 46.8 10.5-50.3zm61.3 141.1 5.2 51.1 25.6-44.4-46.8 21.1 50.2 10.5zm-141.1 61.3-51.1 5.2 44.4 25.6-21.1-46.8-10.5 50.2zm-61.3-141.1-5.2-51.1-25.6 44.4 46.8-21.1-50.2-10.5Zm186.4-27.8 46.8 21.1-25.6-44.4-5.2 51.1 34.3-38.3zm-17.5 152.9L302.6 388l44.4-25.6-51.1-5.2 38.3 34.2zm-152.9-17.5L124 302.6l25.6 44.4 5.2-51.1-34.3 38.3zm17.5-152.9 21.1-46.8-44.4 25.6 51.1 5.2-38.3-34.2z\"\r\n />\r\n <path\r\n fill=\"#338af3\"\r\n d=\"M256 168a88 88 0 0 0-74.9 42H331a88 88 0 0 0-75-42z\"\r\n />\r\n <circle cx=\"256\" cy=\"280\" r=\"56\" fill=\"#ff9811\" />\r\n <path\r\n fill=\"#eee\"\r\n d=\"M288 280a32 32 0 0 1-32 32l-16-32 16-32a32 32 0 0 1 32 32z\"\r\n />\r\n <path fill=\"#0052b4\" d=\"M256 248a32 32 0 0 0-32 32l16 16 16-16z\" />\r\n <path fill=\"#d80027\" d=\"M256 312a32 32 0 0 1-32-32h32z\" />\r\n </g>\r\n <g fill=\"none\">\r\n <circle\r\n cx=\"256\"\r\n cy=\"256\"\r\n :r=\"circleStroke\"\r\n fill=\"none\"\r\n :style=\"{ stroke: props.strokeColor, strokeWidth: props.strokeWidth }\"\r\n />\r\n </g>\r\n </svg>\r\n</template>\r\n<script setup lang=\"ts\">\r\n import { computed } from 'vue';\r\n\r\n const props = withDefaults(\r\n defineProps<{\r\n flagName: string | undefined;\r\n strokeColor?: string;\r\n strokeWidth?: number;\r\n }>(),\r\n {\r\n strokeColor: '#000',\r\n strokeWidth: 0\r\n }\r\n );\r\n\r\n const svgSize = computed(() => 512 + 2 * props.strokeWidth),\r\n viewBoxOrigin = computed(() => -props.strokeWidth),\r\n circleStroke = computed(() => 256 + props.strokeWidth / 2);\r\n</script>\r\n"],"mappings":"sqDA0DQ,GAAA,EAAA,EAAA,cAAyB,IAAM,EAAI,EAAM,WAAW,EACxD,GAAA,EAAA,EAAA,cAA+B,CAAC,EAAM,WAAW,EACjD,GAAA,EAAA,EAAA,cAA8B,IAAM,EAAM,YAAc,CAAC"}