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