| 
									
										
										
										
											2020-07-20 23:43:42 +02:00
										 |  |  | import {Tag, And} from "../../../Logic/TagsFilter"; | 
					
						
							|  |  |  | import Translations from "../../../UI/i18n/Translations"; | 
					
						
							| 
									
										
										
										
											2020-07-31 17:38:03 +02:00
										 |  |  | import {TagRenderingOptions} from "../../TagRenderingOptions"; | 
					
						
							| 
									
										
										
										
											2020-07-20 23:43:42 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default class ParkingOperator extends TagRenderingOptions { | 
					
						
							|  |  |  |     constructor() { | 
					
						
							| 
									
										
										
										
											2020-07-21 01:13:51 +02:00
										 |  |  |         const to = Translations.t.cyclofix.parking.operator | 
					
						
							| 
									
										
										
										
											2020-07-20 23:43:42 +02:00
										 |  |  |         super({ | 
					
						
							|  |  |  |             priority: 15, | 
					
						
							|  |  |  |             question: to.question.Render(), | 
					
						
							|  |  |  |             freeform: { | 
					
						
							|  |  |  |                 key: "operator", | 
					
						
							| 
									
										
										
										
											2020-07-21 23:31:41 +02:00
										 |  |  |                 template: to.template, | 
					
						
							|  |  |  |                 renderTemplate: to.render, | 
					
						
							|  |  |  |                 placeholder: Translations.t.cyclofix.freeFormPlaceholder | 
					
						
							| 
									
										
										
										
											2020-07-20 23:43:42 +02:00
										 |  |  |             }, | 
					
						
							|  |  |  |             mappings: [ | 
					
						
							|  |  |  |                 {k: new Tag("operator", "KU Leuven"), txt: "KU Leuven"}, | 
					
						
							|  |  |  |                 {k: new Tag("operator", "Stad Halle"), txt: "Stad Halle"}, | 
					
						
							|  |  |  |                 {k: new Tag("operator", "Saint Gilles - Sint Gillis"), txt: "Saint Gilles - Sint Gillis"}, | 
					
						
							|  |  |  |                 {k: new Tag("operator", "Jette"), txt: "Jette"}, | 
					
						
							|  |  |  |                 {k: new And([new Tag("operator", ""), new Tag("operator:type", "private")]), txt: to.private.Render()} | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |         }); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |