UNPKG

vue-circle-flags

Version:

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

1 lines 4.77 kB
{"version":3,"file":"united_nations-9jx8lBps.cjs","names":[],"sources":["../src/components/flags/united_nations.vue","../src/components/flags/united_nations.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=\"dabae478-38be-4722-999d-5b07d9697679\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#dabae478-38be-4722-999d-5b07d9697679)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#338af3\" d=\"M0 0h512v512H0z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"145\" fill=\"#eee\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"111\" fill=\"#338af3\" />\r\n <path fill=\"#338af3\" d=\"M76 76h360L256 256z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"89\" fill=\"#eee\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"69\" fill=\"#338af3\" />\r\n <path fill=\"#eee\" d=\"M246 178h20v156h-20z\" />\r\n <path fill=\"#eee\" d=\"M334 246v20H178v-20z\" />\r\n <path fill=\"#eee\" d=\"m304 193.7 14.2 14.2-110.3 110.3-14.2-14.1z\" />\r\n <path fill=\"#eee\" d=\"m318.2 304-14.1 14.2-110.4-110.3 14.2-14.2z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"44\" fill=\"#eee\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"22\" fill=\"#338af3\" />\r\n <ellipse cx=\"256\" cy=\"412\" fill=\"#eee\" rx=\"44\" ry=\"40\" />\r\n <path fill=\"#338af3\" d=\"m256 407-78 63h156z\" />\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=\"dabae478-38be-4722-999d-5b07d9697679\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#dabae478-38be-4722-999d-5b07d9697679)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#338af3\" d=\"M0 0h512v512H0z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"145\" fill=\"#eee\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"111\" fill=\"#338af3\" />\r\n <path fill=\"#338af3\" d=\"M76 76h360L256 256z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"89\" fill=\"#eee\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"69\" fill=\"#338af3\" />\r\n <path fill=\"#eee\" d=\"M246 178h20v156h-20z\" />\r\n <path fill=\"#eee\" d=\"M334 246v20H178v-20z\" />\r\n <path fill=\"#eee\" d=\"m304 193.7 14.2 14.2-110.3 110.3-14.2-14.1z\" />\r\n <path fill=\"#eee\" d=\"m318.2 304-14.1 14.2-110.4-110.3 14.2-14.2z\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"44\" fill=\"#eee\" />\r\n <circle cx=\"256\" cy=\"256\" r=\"22\" fill=\"#338af3\" />\r\n <ellipse cx=\"256\" cy=\"412\" fill=\"#eee\" rx=\"44\" ry=\"40\" />\r\n <path fill=\"#338af3\" d=\"m256 407-78 63h156z\" />\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":"wuCAoDQ,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"}