UNPKG

vue-circle-flags

Version:

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

1 lines 7.04 kB
{"version":3,"file":"ca-bc-d32e43ea.cjs","sources":["../src/components/flags/ca-bc.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 } from \"vue\"\n\nconst _hoisted_1 = [\"viewBox\"]\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"mask\", { id: \"72bde135-dffc-479f-bd77-13839bb49690\" }, [\n /*#__PURE__*/_createElementVNode(\"circle\", {\n cx: \"256\",\n cy: \"256\",\n r: \"256\",\n fill: \"#fff\"\n })\n], -1)\nconst _hoisted_3 = { mask: \"url(#72bde135-dffc-479f-bd77-13839bb49690)\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#eee\",\n d: \"M0 61.2 80.7 0h16l18.5 6 12.9-6h94.6l33.8 19.2 33-19.2h63.1l11.9 7.3L384 0h47.2L512 61.2v33.4L491.3 128l20.7 33.4v33.4l-22 29.7 22 31.5v13.1l-9.7 19 9.7 15.3v32.3l-12.7 19.8L512 370v32.8l-28.4 57-446.2-1-37.3-56V370l13.4-13.7L0 335.7v-32.3l14.2-14.2L0 269v-13l27.4-30.6L0 194.8v-33.4l25.5-33.5L0 94.6z\"\n}, null, -1)\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#0052b4\",\n d: \"M0 0v61.2h142.1L80.7 0H0zm431.3 0-61.2 61.2H512V0h-80.7zM0 194.8V256h80.9l61.2-61.2H0zm370.1 0 61.2 61.2H512v-61.2H370.1zM189.3 242l-14 14h14v-14zm133.6 0v14h14l-14-14zM0 269.1v34.3h.1c21.3 0 21.3 19.5 42.6 19.5 21.4 0 21.4-19.5 42.7-19.5 21.3 0 21.3 19.5 42.7 19.5 21.4 0 21.3-19.5 42.6-19.5 21.4 0 21.4 19.5 42.7 19.5 21.3 0 21.3-19.5 42.7-19.5 21.4 0 21.4 19.5 42.7 19.5 21.3 0 21.3-19.5 42.7-19.5 21.3 0 21.3 19.5 42.6 19.5 21.4 0 21.4-19.5 42.7-19.5 21.3 0 21.3 19.5 42.7 19.5 21.4 0 21.3-19.4 42.5-19.5v-34.3c-21.2 0-21.2 19.5-42.5 19.5s-21.4-19.5-42.7-19.5c-21.3 0-21.3 19.5-42.7 19.5-21.3 0-21.3-19.5-42.6-19.5-21.4 0-21.4 19.5-42.7 19.5-21.3 0-21.3-19.5-42.7-19.5-21.4 0-21.4 19.5-42.7 19.5-21.3 0-21.3-19.5-42.7-19.5-21.3 0-21.3 19.5-42.6 19.5s-21.4-19.5-42.7-19.5c-21.3 0-21.3 19.5-42.7 19.5-21.3 0-21.3-19.5-42.6-19.5H0zm0 66.6V370h.1c21.4 0 21.4 19.5 42.7 19.5 21.3 0 21.3-19.5 42.7-19.5 21.3 0 21.3 19.5 42.6 19.5 21.4 0 21.4-19.5 42.7-19.5 21.3 0 21.3 19.5 42.7 19.5 21.4 0 21.3-19.5 42.6-19.5 21.4 0 21.4 19.5 42.7 19.5 21.3 0 21.3-19.5 42.7-19.5 21.4 0 21.4 19.5 42.7 19.5 21.3 0 21.3-19.5 42.7-19.5 21.3 0 21.3 19.5 42.6 19.5s21.4-19.4 42.5-19.5v-34.3c-21.1.1-21.2 19.5-42.5 19.5s-21.3-19.5-42.6-19.5c-21.4 0-21.4 19.5-42.7 19.5-21.3 0-21.3-19.5-42.7-19.5-21.4 0-21.4 19.5-42.7 19.5-21.3 0-21.3-19.5-42.7-19.5-21.3 0-21.3 19.5-42.6 19.5s-21.4-19.5-42.7-19.5c-21.3 0-21.3 19.5-42.7 19.5-21.3 0-21.3-19.5-42.6-19.5-21.4 0-21.4 19.5-42.7 19.5-21.3 0-21.3-19.5-42.7-19.5H0zm0 67.1V512h92.6l168.1-21.3L419.4 512H512V402.8c-21.2 0-21.2 19.5-42.5 19.5s-21.4-19.5-42.7-19.5c-21.3 0-21.3 19.5-42.7 19.5-21.3 0-21.3-19.5-42.6-19.5-21.4 0-21.4 19.5-42.7 19.5-21.3 0-21.3-19.5-42.7-19.5-21.4 0-21.4 19.5-42.7 19.5-21.3 0-21.3-19.5-42.7-19.5-21.3 0-21.3 19.5-42.6 19.5s-21.4-19.5-42.7-19.5c-21.3 0-21.3 19.5-42.7 19.5-21.3 0-21.3-19.5-42.6-19.5H0z\"\n}, null, -1)\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#d80027\",\n d: \"m96.7 0 61.2 61.2h31.4L128.1 0H96.7zm126 0v94.6H0v66.8h222.6V256h66.8v-94.6H512V94.6H289.5V0h-66.8zm129.9 0-29.7 29.7v31.5L384.1 0h-31.5zM189.4 194.8 128.1 256h31.5l29.8-29.7v-31.5zm133.5 0 61.2 61.2h31.5l-61.2-61.2h-31.5z\"\n}, null, -1)\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#ffda44\",\n d: \"m201.9 345-10 78.7-77.8-14.9 37.7 68.7A268.2 268.2 0 0 0 92.6 512h326.8a268.2 268.2 0 0 0-59-34.5l37.7-68.7-77.9 15-9.9-78.8-54.2 58-54.2-58z\"\n}, null, -1)\nconst _hoisted_9 = { fill: \"none\" }\nconst _hoisted_10 = [\"r\"]\n\nimport { computed } from 'vue';\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'ca-bc',\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 _hoisted_6,\n _hoisted_7,\n _hoisted_8\n ]),\n _createElementVNode(\"g\", _hoisted_9, [\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_10)\n ])\n ], 8, _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_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,uBAA8C,OAAQ,CAC1D,KAAM,OACN,EAAG,+SACL,EAAG,KAAM,EAAE,EACLC,uBAA8C,OAAQ,CAC1D,KAAM,UACN,EAAG,8zDACL,EAAG,KAAM,EAAE,EACLC,uBAA8C,OAAQ,CAC1D,KAAM,UACN,EAAG,gOACL,EAAG,KAAM,EAAE,EACLC,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