{"version":3,"file":"loadingIndicator.obs.js","sources":["../../../Framework/Controls/loadingIndicator.obs"],"sourcesContent":["<!-- Copyright by the Spark Development Network; Licensed under the Rock Community License -->\r\n<template>\r\n <div v-if=\"isShown\" :class=\"['text-center', isSmall ? '' : 'fa-2x']\">\r\n <i class=\"fas fa-spinner fa-pulse\"></i>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\n import { PropType, ref } from \"vue\";\r\n\r\n const props = defineProps({\r\n /** The delay in milliseconds to wait before showing the loading indicator. */\r\n delay: {\r\n type: Number as PropType<number>,\r\n default: 0\r\n },\r\n\r\n /** Whether or not to show a smaller version of the loading spinner */\r\n isSmall: {\r\n type: Boolean,\r\n default: false\r\n }\r\n });\r\n\r\n const isShown = ref(!props.delay);\r\n\r\n if (props.delay) {\r\n setTimeout(() => isShown.value = true, props.delay);\r\n }\r\n</script>\r\n"],"names":["isShown","ref","props","delay","setTimeout","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAwBI,IAAMA,OAAO,GAAGC,GAAG,CAAC,CAACC,KAAK,CAACC,KAAK,CAAC,CAAA;UAEjC,IAAID,KAAK,CAACC,KAAK,EAAE;YACbC,UAAU,CAAC,MAAMJ,OAAO,CAACK,KAAK,GAAG,IAAI,EAAEH,KAAK,CAACC,KAAK,CAAC,CAAA;MACvD,KAAA;;;;;;;;;;;;;;;;;;"}