{"version":3,"file":"loadingIndicator.js","sources":["../../../Framework/Controls/loadingIndicator.ts"],"sourcesContent":["// \r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n//\r\nimport { defineComponent, PropType, ref } from \"vue\";\r\n\r\nexport default defineComponent({\r\n name: \"LoadingIndicator\",\r\n\r\n props: {\r\n /** The delay in milliseconds to wait before showing the loading indicator. */\r\n delay: {\r\n type: Number as PropType,\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 setup(props) {\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\r\n return {\r\n isShown\r\n };\r\n },\r\n\r\n template: `\r\n\r\n \r\n
`\r\n});\r\n"],"names":["defineComponent","name","props","delay","type","Number","default","isSmall","Boolean","setup","isShown","ref","setTimeout","value","template"],"mappings":";;;;;;;;;;AAkBA,sDAAeA,eAAe,CAAC;YAC3BC,EAAAA,IAAI,EAAE,kBAAkB;YAExBC,EAAAA,KAAK,EAAE;YAEHC,IAAAA,KAAK,EAAE;YACHC,MAAAA,IAAI,EAAEC,MAA0B;YAChCC,MAAAA,OAAO,EAAE,CAAA;iBACZ;YAGDC,IAAAA,OAAO,EAAE;YACLH,MAAAA,IAAI,EAAEI,OAAO;YACbF,MAAAA,OAAO,EAAE,KAAA;YACb,KAAA;eACH;cAEDG,KAAKA,CAACP,KAAK,EAAE;gBACT,IAAMQ,OAAO,GAAGC,GAAG,CAAC,CAACT,KAAK,CAACC,KAAK,CAAC,CAAA;gBAEjC,IAAID,KAAK,CAACC,KAAK,EAAE;kBACbS,UAAU,CAAC,MAAMF,OAAO,CAACG,KAAK,GAAG,IAAI,EAAEX,KAAK,CAACC,KAAK,CAAC,CAAA;YACvD,KAAA;gBAEA,OAAO;YACHO,MAAAA,OAAAA;iBACH,CAAA;eACJ;cAEDI,QAAQ,EAAA,oIAAA;YAIZ,CAAC,EAAC;;;;;;;;"}