vue-circle-flags
Version:
A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags
1 lines • 9.16 kB
Source Map (JSON)
{"version":3,"file":"es-Bvploskv.cjs","names":[],"sources":["../src/components/flags/es.vue","../src/components/flags/es.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=\"0a571d60-b7a9-4a3a-a69a-a941b88a0842\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#0a571d60-b7a9-4a3a-a69a-a941b88a0842)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#ffda44\" d=\"m0 128 256-32 256 32v256l-256 32L0 384Z\" />\r\n <path fill=\"#d80027\" d=\"M0 0h512v128H0zm0 384h512v128H0z\" />\r\n <g fill=\"#eee\">\r\n <path d=\"M144 304h-16v-80h16zm128 0h16v-80h-16z\" />\r\n <ellipse cx=\"208\" cy=\"296\" rx=\"48\" ry=\"32\" />\r\n </g>\r\n <g fill=\"#d80027\">\r\n <rect width=\"16\" height=\"24\" x=\"128\" y=\"192\" rx=\"8\" />\r\n <rect width=\"16\" height=\"24\" x=\"272\" y=\"192\" rx=\"8\" />\r\n <path d=\"M208 272v24a24 24 0 0 0 24 24 24 24 0 0 0 24-24v-24h-24z\" />\r\n </g>\r\n <rect width=\"32\" height=\"16\" x=\"120\" y=\"208\" fill=\"#ff9811\" ry=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"264\" y=\"208\" fill=\"#ff9811\" ry=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"120\" y=\"304\" fill=\"#ff9811\" rx=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"264\" y=\"304\" fill=\"#ff9811\" rx=\"8\" />\r\n <path\r\n fill=\"#ff9811\"\r\n d=\"M160 272v24c0 8 4 14 9 19l5-6 5 10a21 21 0 0 0 10 0l5-10 5 6c6-5 9-11 9-19v-24h-9l-5 8-5-8h-10l-5 8-5-8z\"\r\n />\r\n <path d=\"M122 252h172m-172 24h28m116 0h28\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M122 248a4 4 0 0 0-4 4 4 4 0 0 0 4 4h172a4 4 0 0 0 4-4 4 4 0 0 0-4-4zm0 24a4 4 0 0 0-4 4 4 4 0 0 0 4 4h28a4 4 0 0 0 4-4 4 4 0 0 0-4-4zm144 0a4 4 0 0 0-4 4 4 4 0 0 0 4 4h28a4 4 0 0 0 4-4 4 4 0 0 0-4-4z\"\r\n />\r\n <path\r\n fill=\"#eee\"\r\n d=\"M196 168c-7 0-13 5-15 11l-5-1c-9 0-16 7-16 16s7 16 16 16c7 0 13-4 15-11a16 16 0 0 0 17-4 16 16 0 0 0 17 4 16 16 0 1 0 10-20 16 16 0 0 0-27-5c-3-4-7-6-12-6zm0 8c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-8 0-4 4-8 8-8zm24 0c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-8 0-4 4-8 8-8zm-44 10 4 1 4 8c0 4-4 7-8 7s-8-3-8-8c0-4 4-8 8-8zm64 0c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-7l4-8z\"\r\n />\r\n <path fill=\"none\" d=\"M220 284v12c0 7 5 12 12 12s12-5 12-12v-12z\" />\r\n <path fill=\"#ff9811\" d=\"M200 160h16v32h-16z\" />\r\n <path fill=\"#eee\" d=\"M208 224h48v48h-48z\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"m248 208-8 8h-64l-8-8c0-13 18-24 40-24s40 11 40 24zm-88 16h48v48h-48z\"\r\n />\r\n <rect\r\n width=\"20\"\r\n height=\"32\"\r\n x=\"222\"\r\n y=\"232\"\r\n fill=\"#d80027\"\r\n rx=\"10\"\r\n ry=\"10\"\r\n />\r\n <path\r\n fill=\"#ff9811\"\r\n d=\"M168 232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z\"\r\n />\r\n <g fill=\"#ffda44\">\r\n <circle cx=\"186\" cy=\"202\" r=\"6\" />\r\n <circle cx=\"208\" cy=\"202\" r=\"6\" />\r\n <circle cx=\"230\" cy=\"202\" r=\"6\" />\r\n </g>\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M169 272v43a24 24 0 0 0 10 4v-47h-10zm20 0v47a24 24 0 0 0 10-4v-43h-10z\"\r\n />\r\n <g fill=\"#338af3\">\r\n <circle cx=\"208\" cy=\"272\" r=\"16\" />\r\n <rect width=\"32\" height=\"16\" x=\"264\" y=\"320\" ry=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"120\" y=\"320\" ry=\"8\" />\r\n </g>\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=\"0a571d60-b7a9-4a3a-a69a-a941b88a0842\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#0a571d60-b7a9-4a3a-a69a-a941b88a0842)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#ffda44\" d=\"m0 128 256-32 256 32v256l-256 32L0 384Z\" />\r\n <path fill=\"#d80027\" d=\"M0 0h512v128H0zm0 384h512v128H0z\" />\r\n <g fill=\"#eee\">\r\n <path d=\"M144 304h-16v-80h16zm128 0h16v-80h-16z\" />\r\n <ellipse cx=\"208\" cy=\"296\" rx=\"48\" ry=\"32\" />\r\n </g>\r\n <g fill=\"#d80027\">\r\n <rect width=\"16\" height=\"24\" x=\"128\" y=\"192\" rx=\"8\" />\r\n <rect width=\"16\" height=\"24\" x=\"272\" y=\"192\" rx=\"8\" />\r\n <path d=\"M208 272v24a24 24 0 0 0 24 24 24 24 0 0 0 24-24v-24h-24z\" />\r\n </g>\r\n <rect width=\"32\" height=\"16\" x=\"120\" y=\"208\" fill=\"#ff9811\" ry=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"264\" y=\"208\" fill=\"#ff9811\" ry=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"120\" y=\"304\" fill=\"#ff9811\" rx=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"264\" y=\"304\" fill=\"#ff9811\" rx=\"8\" />\r\n <path\r\n fill=\"#ff9811\"\r\n d=\"M160 272v24c0 8 4 14 9 19l5-6 5 10a21 21 0 0 0 10 0l5-10 5 6c6-5 9-11 9-19v-24h-9l-5 8-5-8h-10l-5 8-5-8z\"\r\n />\r\n <path d=\"M122 252h172m-172 24h28m116 0h28\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M122 248a4 4 0 0 0-4 4 4 4 0 0 0 4 4h172a4 4 0 0 0 4-4 4 4 0 0 0-4-4zm0 24a4 4 0 0 0-4 4 4 4 0 0 0 4 4h28a4 4 0 0 0 4-4 4 4 0 0 0-4-4zm144 0a4 4 0 0 0-4 4 4 4 0 0 0 4 4h28a4 4 0 0 0 4-4 4 4 0 0 0-4-4z\"\r\n />\r\n <path\r\n fill=\"#eee\"\r\n d=\"M196 168c-7 0-13 5-15 11l-5-1c-9 0-16 7-16 16s7 16 16 16c7 0 13-4 15-11a16 16 0 0 0 17-4 16 16 0 0 0 17 4 16 16 0 1 0 10-20 16 16 0 0 0-27-5c-3-4-7-6-12-6zm0 8c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-8 0-4 4-8 8-8zm24 0c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-8 0-4 4-8 8-8zm-44 10 4 1 4 8c0 4-4 7-8 7s-8-3-8-8c0-4 4-8 8-8zm64 0c5 0 8 4 8 8 0 5-3 8-8 8-4 0-8-3-8-7l4-8z\"\r\n />\r\n <path fill=\"none\" d=\"M220 284v12c0 7 5 12 12 12s12-5 12-12v-12z\" />\r\n <path fill=\"#ff9811\" d=\"M200 160h16v32h-16z\" />\r\n <path fill=\"#eee\" d=\"M208 224h48v48h-48z\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"m248 208-8 8h-64l-8-8c0-13 18-24 40-24s40 11 40 24zm-88 16h48v48h-48z\"\r\n />\r\n <rect\r\n width=\"20\"\r\n height=\"32\"\r\n x=\"222\"\r\n y=\"232\"\r\n fill=\"#d80027\"\r\n rx=\"10\"\r\n ry=\"10\"\r\n />\r\n <path\r\n fill=\"#ff9811\"\r\n d=\"M168 232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z\"\r\n />\r\n <g fill=\"#ffda44\">\r\n <circle cx=\"186\" cy=\"202\" r=\"6\" />\r\n <circle cx=\"208\" cy=\"202\" r=\"6\" />\r\n <circle cx=\"230\" cy=\"202\" r=\"6\" />\r\n </g>\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M169 272v43a24 24 0 0 0 10 4v-47h-10zm20 0v47a24 24 0 0 0 10-4v-43h-10z\"\r\n />\r\n <g fill=\"#338af3\">\r\n <circle cx=\"208\" cy=\"272\" r=\"16\" />\r\n <rect width=\"32\" height=\"16\" x=\"264\" y=\"320\" ry=\"8\" />\r\n <rect width=\"32\" height=\"16\" x=\"120\" y=\"320\" ry=\"8\" />\r\n </g>\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":"w1FAoGQ,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"}