UNPKG

vue-circle-flags

Version:

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

1 lines 6.34 kB
{"version":3,"file":"nl-fr-DIP5PU-1.cjs","names":[],"sources":["../src/components/flags/nl-fr.vue","../src/components/flags/nl-fr.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=\"1c460768-cc0e-426e-96c1-c710c3dca9ee\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#1c460768-cc0e-426e-96c1-c710c3dca9ee)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#eee\"\r\n d=\"M0 0v51.7l32 103.4H0v103.5L32 362H0v150h150v-32l103.4 32h103.5v-32l103.4 32H512v-51.7l-32-103.4h32V253.4L480 150h32V0H362v32L258.6 0H155.1v32L51.7 0H0z\"\r\n />\r\n <path\r\n fill=\"#0052b4\"\r\n d=\"M51.7 0 512 460.3V356.9L155.1 0H51.7zm206.9 0L512 253.4V150L362 0H258.6zM0 51.8v103.4L356.8 512h103.4L0 51.8zm0 206.9v103.4L149.9 512h103.5L0 258.7z\"\r\n />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M261.6 222.2a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm-100-100a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm200 200a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm-254-45.9a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.5 38 38 0 0 0 53.7 53.8 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.9 18 18 0 0 0 0-25.3zm100 100a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm207-207a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.5 38 38 0 0 0 53.7 53.8 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.9 18 18 0 0 0 0-25.3zm-100-100a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.6 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.3z\"\r\n />\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=\"1c460768-cc0e-426e-96c1-c710c3dca9ee\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#1c460768-cc0e-426e-96c1-c710c3dca9ee)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#eee\"\r\n d=\"M0 0v51.7l32 103.4H0v103.5L32 362H0v150h150v-32l103.4 32h103.5v-32l103.4 32H512v-51.7l-32-103.4h32V253.4L480 150h32V0H362v32L258.6 0H155.1v32L51.7 0H0z\"\r\n />\r\n <path\r\n fill=\"#0052b4\"\r\n d=\"M51.7 0 512 460.3V356.9L155.1 0H51.7zm206.9 0L512 253.4V150L362 0H258.6zM0 51.8v103.4L356.8 512h103.4L0 51.8zm0 206.9v103.4L149.9 512h103.5L0 258.7z\"\r\n />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M261.6 222.2a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm-100-100a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm200 200a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm-254-45.9a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.5 38 38 0 0 0 53.7 53.8 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.9 18 18 0 0 0 0-25.3zm100 100a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.4zm207-207a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.5 38 38 0 0 0 53.7 53.8 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.5 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.9 18 18 0 0 0 0-25.3zm-100-100a18 18 0 0 0-25.5 0 18 18 0 0 0-.6.6 38 38 0 0 0 53.7 53.7 18 18 0 0 0 .6-.6 18 18 0 0 0 0-25.6 18 18 0 0 0-25.4 0 2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.8 18 18 0 0 0 0-25.3z\"\r\n />\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":"qlEAkDQ,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"}