| 
									
										
										
										
											2021-10-02 17:57:54 +02:00
										 |  |  | import Combine from "./Combine" | 
					
						
							|  |  |  | import Svg from "../../Svg" | 
					
						
							|  |  |  | import Translations from "../i18n/Translations" | 
					
						
							| 
									
										
										
										
											2022-01-21 01:57:16 +01:00
										 |  |  | import BaseUIElement from "../BaseUIElement" | 
					
						
							| 
									
										
										
										
											2021-06-28 18:06:54 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-02 17:57:54 +02:00
										 |  |  | export default class Loading extends Combine { | 
					
						
							| 
									
										
										
										
											2022-01-21 01:57:16 +01:00
										 |  |  |     constructor(msg?: BaseUIElement | string) { | 
					
						
							|  |  |  |         const t = Translations.W(msg) ?? Translations.t.general.loading | 
					
						
							| 
									
										
										
										
											2021-10-02 17:57:54 +02:00
										 |  |  |         t.SetClass("pl-2") | 
					
						
							|  |  |  |         super([ | 
					
						
							| 
									
										
										
										
											2022-01-25 21:55:51 +01:00
										 |  |  |             Svg.loading_svg() | 
					
						
							|  |  |  |                 .SetClass("animate-spin self-center") | 
					
						
							|  |  |  |                 .SetStyle("width: 1.5rem; height: 1.5rem; min-width: 1.5rem;"), | 
					
						
							| 
									
										
										
										
											2021-11-07 16:34:51 +01:00
										 |  |  |             t, | 
					
						
							| 
									
										
										
										
											2021-10-02 17:57:54 +02:00
										 |  |  |         ]) | 
					
						
							| 
									
										
										
										
											2021-10-02 22:31:16 +02:00
										 |  |  |         this.SetClass("flex p-1") | 
					
						
							| 
									
										
										
										
											2021-06-28 18:06:54 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | } |