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.92 kB
{"version":3,"file":"es-03e01cf1.cjs","sources":["../src/components/flags/es.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: \"0a571d60-b7a9-4a3a-a69a-a941b88a0842\" }, [\n /*#__PURE__*/_createElementVNode(\"circle\", {\n cx: \"256\",\n cy: \"256\",\n r: \"256\",\n fill: \"#fff\"\n })\n], -1)\nconst _hoisted_3 = { mask: \"url(#0a571d60-b7a9-4a3a-a69a-a941b88a0842)\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = /*#__PURE__*/_createStaticVNode(\"<path fill=\\\"#ffda44\\\" d=\\\"m0 128 256-32 256 32v256l-256 32L0 384Z\\\"></path><path fill=\\\"#d80027\\\" d=\\\"M0 0h512v128H0zm0 384h512v128H0z\\\"></path><g fill=\\\"#eee\\\"><path d=\\\"M144 304h-16v-80h16zm128 0h16v-80h-16z\\\"></path><ellipse cx=\\\"208\\\" cy=\\\"296\\\" rx=\\\"48\\\" ry=\\\"32\\\"></ellipse></g><g fill=\\\"#d80027\\\"><rect width=\\\"16\\\" height=\\\"24\\\" x=\\\"128\\\" y=\\\"192\\\" rx=\\\"8\\\"></rect><rect width=\\\"16\\\" height=\\\"24\\\" x=\\\"272\\\" y=\\\"192\\\" rx=\\\"8\\\"></rect><path d=\\\"M208 272v24a24 24 0 0 0 24 24 24 24 0 0 0 24-24v-24h-24z\\\"></path></g><rect width=\\\"32\\\" height=\\\"16\\\" x=\\\"120\\\" y=\\\"208\\\" fill=\\\"#ff9811\\\" ry=\\\"8\\\"></rect><rect width=\\\"32\\\" height=\\\"16\\\" x=\\\"264\\\" y=\\\"208\\\" fill=\\\"#ff9811\\\" ry=\\\"8\\\"></rect><rect width=\\\"32\\\" height=\\\"16\\\" x=\\\"120\\\" y=\\\"304\\\" fill=\\\"#ff9811\\\" rx=\\\"8\\\"></rect><rect width=\\\"32\\\" height=\\\"16\\\" x=\\\"264\\\" y=\\\"304\\\" fill=\\\"#ff9811\\\" rx=\\\"8\\\"></rect><path fill=\\\"#ff9811\\\" 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\\\"></path><path d=\\\"M122 252h172m-172 24h28m116 0h28\\\"></path><path fill=\\\"#d80027\\\" 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\\\"></path><path fill=\\\"#eee\\\" 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\\\"></path><path fill=\\\"none\\\" d=\\\"M220 284v12c0 7 5 12 12 12s12-5 12-12v-12z\\\"></path><path fill=\\\"#ff9811\\\" d=\\\"M200 160h16v32h-16z\\\"></path><path fill=\\\"#eee\\\" d=\\\"M208 224h48v48h-48z\\\"></path><path fill=\\\"#d80027\\\" d=\\\"m248 208-8 8h-64l-8-8c0-13 18-24 40-24s40 11 40 24zm-88 16h48v48h-48z\\\"></path><rect width=\\\"20\\\" height=\\\"32\\\" x=\\\"222\\\" y=\\\"232\\\" fill=\\\"#d80027\\\" rx=\\\"10\\\" ry=\\\"10\\\"></rect><path fill=\\\"#ff9811\\\" d=\\\"M168 232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z\\\"></path><g fill=\\\"#ffda44\\\"><circle cx=\\\"186\\\" cy=\\\"202\\\" r=\\\"6\\\"></circle><circle cx=\\\"208\\\" cy=\\\"202\\\" r=\\\"6\\\"></circle><circle cx=\\\"230\\\" cy=\\\"202\\\" r=\\\"6\\\"></circle></g><path fill=\\\"#d80027\\\" d=\\\"M169 272v43a24 24 0 0 0 10 4v-47h-10zm20 0v47a24 24 0 0 0 10-4v-43h-10z\\\"></path><g fill=\\\"#338af3\\\"><circle cx=\\\"208\\\" cy=\\\"272\\\" r=\\\"16\\\"></circle><rect width=\\\"32\\\" height=\\\"16\\\" x=\\\"264\\\" y=\\\"320\\\" ry=\\\"8\\\"></rect><rect width=\\\"32\\\" height=\\\"16\\\" x=\\\"120\\\" y=\\\"320\\\" ry=\\\"8\\\"></rect></g>\", 21)\nconst _hoisted_26 = { fill: \"none\" }\nconst _hoisted_27 = [\"r\"]\n\nimport { computed } from 'vue';\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'es',\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_26, [\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_27)\n ])\n ], 8, _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_hoisted_5","_createStaticVNode","_hoisted_26","_hoisted_27","_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,65EAA8lF,EAAE,EAC7oFC,EAAc,CAAE,KAAM,QACtBC,EAAc,CAAC,GAAG,EAKIC,EAAiBC,kBAAA,CAC3C,OAAQ,KACR,MAAO,CACL,SAAU,CAAC,EACX,YAAa,CAAE,QAAS,MAAO,EAC/B,YAAa,CAAE,QAAS,CAAE,CAC5B,EACA,MAAMC,EAAc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