vue-circle-flags
Version:
A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags
1 lines • 5.35 kB
Source Map (JSON)
{"version":3,"file":"us-ms-f420ca9b.cjs","sources":["../src/components/flags/us-ms.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createStaticVNode as _createStaticVNode } from \"vue\"\n\nconst _hoisted_1 = [\"viewBox\"]\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"mask\", { id: \"0bb0ad75-6f19-43fe-85fe-52a1c1981e2f\" }, [\n /*#__PURE__*/_createElementVNode(\"circle\", {\n cx: \"256\",\n cy: \"256\",\n r: \"256\",\n fill: \"#fff\"\n })\n], -1)\nconst _hoisted_3 = { mask: \"url(#0bb0ad75-6f19-43fe-85fe-52a1c1981e2f)\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = /*#__PURE__*/_createStaticVNode(\"<path fill=\\\"#d80027\\\" d=\\\"M0 0h104l152 64L408 0h104v512H408l-152-64-152 64H0Z\\\"></path><path fill=\\\"#ff9811\\\" d=\\\"M104 0h24l128 64L384 0h24v512h-24l-128-64-128 64h-24z\\\"></path><path fill=\\\"#0052b4\\\" d=\\\"M128 0h256v512H128Z\\\"></path><path fill=\\\"#eee\\\" d=\\\"m198 155 3 16-14 9 16 1 4 16 7-15 16 2-12-11 6-15-14 8-12-11zm116 0-12 11-14-8 7 15-13 11 17-2 6 15 4-16 16-1-14-8 3-17zm-134 32-8 14-17-3 11 12-8 14 15-6 11 12-2-17 15-6-16-4-1-16zm153 0-2 16-16 4 15 6-2 17 11-12 15 6-8-14 11-12-16 3-8-14zm-77 21a16 16 0 0 0-16 16 16 16 0 0 0 2 8 16 16 0 0 0-6-6 16 16 0 0 0-8-2 16 16 0 0 0-14 8 16 16 0 0 0 6 22 16 16 0 0 0 8 2 16 16 0 0 0-8 2 16 16 0 0 0-6 22 16 16 0 0 0 22 6 16 16 0 0 0 6-6 16 16 0 0 0-2 8 16 16 0 0 0 16 16 16 16 0 0 0 16-16 16 16 0 0 0-2-8 16 16 0 0 0 6 6 16 16 0 0 0 22-6 16 16 0 0 0-6-22 16 16 0 0 0-8-2 16 16 0 0 0 8-2 16 16 0 0 0 6-22 16 16 0 0 0-13-8 16 16 0 0 0-9 2 16 16 0 0 0-6 6 16 16 0 0 0 2-8 16 16 0 0 0-16-16zm-100 27v16l-16 5 16 5v16l9-13 16 5-10-13 10-13-16 5-9-13zm201 0-10 13-15-5 9 13-9 13 15-5 10 13v-16l15-5-15-5v-16zm-173 47-11 12-15-6 8 14-11 12 17-3 8 14 1-16 16-4-15-6 2-17zm144 0 2 17-15 6 16 4 1 16 9-14 16 3-11-12 8-14-15 7-11-13zm-130 40-11 12a104 104 0 0 0 138 0l-11-12a88 88 0 0 1-116 0z\\\"></path><path fill=\\\"#ff9811\\\" d=\\\"m256 140-5 15h-16l13 10-5 15 13-9 13 9-5-15 13-10h-16l-5-15zm0 100a16 16 0 0 0-16 16 16 16 0 0 0 16 16 16 16 0 0 0 16-16 16 16 0 0 0-16-16z\\\"></path>\", 5)\nconst _hoisted_10 = { fill: \"none\" }\nconst _hoisted_11 = [\"r\"]\n\nimport { computed } from 'vue';\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'us-ms',\n props: {\n flagName: {},\n strokeColor: { default: '#000' },\n strokeWidth: { default: 0 }\n },\n setup(__props: any) {\n\nconst props = __props;\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\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n class: \"svg-circle-flags\",\n viewBox: `${viewBoxOrigin.value} ${viewBoxOrigin.value} ${svgSize.value} ${svgSize.value}`\n }, [\n _hoisted_2,\n _createElementVNode(\"g\", _hoisted_3, [\n (props.flagName)\n ? (_openBlock(), _createElementBlock(\"title\", _hoisted_4, _toDisplayString(props.flagName), 1))\n : _createCommentVNode(\"\", true),\n _hoisted_5\n ]),\n _createElementVNode(\"g\", _hoisted_10, [\n _createElementVNode(\"circle\", {\n cx: \"256\",\n cy: \"256\",\n r: circleStroke.value,\n fill: \"none\",\n style: _normalizeStyle({ stroke: props.strokeColor, strokeWidth: props.strokeWidth })\n }, null, 12, _hoisted_11)\n ])\n ], 8, _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_hoisted_5","_createStaticVNode","_hoisted_10","_hoisted_11","_sfc_main","_defineComponent","__props","props","svgSize","computed","viewBoxOrigin","circleStroke","_ctx","_cache","_openBlock","_createElementBlock","_toDisplayString","_createCommentVNode","_normalizeStyle"],"mappings":"uGAGMA,EAAa,CAAC,SAAS,EACvBC,EAA8CC,EAAAA,mBAAA,OAAQ,CAAE,GAAI,wCAA0C,sBACzE,SAAU,CACzC,GAAI,MACJ,GAAI,MACJ,EAAG,MACH,KAAM,MAAA,CACP,CACH,EAAG,EAAE,EACCC,EAAa,CAAE,KAAM,8CACrBC,EAAa,CAAE,IAAK,GACpBC,EAA6CC,EAAA,kBAAA,03CAA+4C,CAAC,EAC77CC,EAAc,CAAE,KAAM,QACtBC,EAAc,CAAC,GAAG,EAKIC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,SAAU,CAAC,EACX,YAAa,CAAE,QAAS,MAAO,EAC/B,YAAa,CAAE,QAAS,CAAE,CAC5B,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAINE,EAAUC,WAAS,IAAM,IAAM,EAAIF,EAAM,WAAW,EACxDG,EAAgBD,EAAA,SAAS,IAAM,CAACF,EAAM,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