1 line
2.8 KiB
Plaintext
1 line
2.8 KiB
Plaintext
{"version":3,"file":"AssistantIcon-QNp3ITeF.chunk.mjs","sources":["../src/components/icons/AssistantIcon.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<template>\n\t<span :aria-hidden=\"!title\"\n\t\t:aria-label=\"title\"\n\t\tclass=\"material-design-icon assistant-icon\"\n\t\trole=\"img\"\n\t\tv-bind=\"$attrs\"\n\t\t@click=\"$emit('click', $event)\">\n\t\t<svg\n\t\t\t:fill=\"fillColor\"\n\t\t\t:width=\"size\"\n\t\t\t:height=\"size\"\n\t\t\tenable-background=\"new 0 0 24 24\"\n\t\t\tversion=\"1.1\"\n\t\t\tviewBox=\"-4 -4 32 32\"\n\t\t\txml:space=\"preserve\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\ttransform=\"scale(1.333)\">\n\t\t\t<!-- Split each star into its own group for animation -->\n\t\t\t<g class=\"star star1\">\n\t\t\t\t<path d=\"M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75\" />\n\t\t\t</g>\n\t\t\t<g class=\"star star2\">\n\t\t\t\t<path d=\"M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5\" />\n\t\t\t</g>\n\t\t\t<g class=\"star star3\">\n\t\t\t\t<path d=\"M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74\" />\n\t\t\t</g>\n\t\t</svg>\n\t</span>\n</template>\n\n<script>\nexport default {\n\tname: 'AssistantIcon',\n\tprops: {\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\tfillColor: {\n\t\t\ttype: String,\n\t\t\tdefault: 'currentColor',\n\t\t},\n\n\t\tsize: {\n\t\t\ttype: Number,\n\t\t\tdefault: 24,\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.star {\n transform-origin: center center;\n}\n\n.assistant-icon:hover .star1 {\n animation: pulse 0.6s ease forwards;\n}\n\n.assistant-icon:hover .star2 {\n animation: pulse 0.6s ease 0.1s forwards;\n}\n\n.assistant-icon:hover .star3 {\n animation: pulse 0.6s ease 0.2s forwards;\n}\n\n/* No animation to avoid vestibular motion triggers. */\n@media (prefers-reduced-motion: reduce) {\n .assistant-icon:hover .star1 {\n animation: none;\n }\n\n .assistant-icon:hover .star2 {\n animation: none;\n }\n\n .assistant-icon:hover .star3 {\n animation: none;\n }\n\n}\n\n@keyframes pulse {\n 0% { transform: scale(1); }\n 50% { transform: scale(1.4); }\n 100% { transform: scale(1); }\n}\n</style>\n"],"names":["_sfc_main","_openBlock","_createElementBlock","_mergeProps","$props","_ctx","_cache","$event"],"mappings":"yJAoCA,MAAKA,EAAU,CACd,KAAM,gBACN,MAAO,CACN,MAAO,CACN,KAAM,OACN,QAAS,IAGV,UAAW,CACV,KAAM,OACN,QAAS,gBAGV,KAAM,CACL,KAAM,OACN,QAAS,IAGZ,qFAjDC,OAAAC,EAAA,EAAAC,EA2BO,OA3BPC,EA2BO,CA3BA,eAAcC,EAAA,MACnB,aAAYA,EAAA,MACb,MAAM,sCACN,KAAK,OACGC,EAAA,OAAM,CACb,QAAKC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEF,EAAA,MAAK,QAAUE,CAAM,WAC7BL,EAoBM,MAAA,CAnBJ,KAAME,EAAA,UACN,MAAOA,EAAA,KACP,OAAQA,EAAA,KACT,oBAAkB,gBAClB,QAAQ,MACR,QAAQ,cACR,YAAU,WACV,MAAM,6BACN,UAAU"} |