| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  | <script lang="ts"> | 
					
						
							| 
									
										
										
										
											2023-05-08 01:55:21 +02:00
										 |  |  |     import UserDetails from "../../Logic/Osm/OsmConnection" | 
					
						
							|  |  |  |     import {UIEventSource} from "../../Logic/UIEventSource" | 
					
						
							|  |  |  |     import Constants from "../../Models/Constants" | 
					
						
							|  |  |  |     import Svg from "../../Svg" | 
					
						
							|  |  |  |     import SubtleButton from "../Base/SubtleButton.svelte" | 
					
						
							|  |  |  |     import ToSvelte from "../Base/ToSvelte.svelte" | 
					
						
							|  |  |  |     import Translations from "../i18n/Translations" | 
					
						
							| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-08 01:55:21 +02:00
										 |  |  |     export let userDetails: UIEventSource<UserDetails> | 
					
						
							|  |  |  |     const t = Translations.t.general.morescreen | 
					
						
							| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-08 01:55:21 +02:00
										 |  |  |     console.log($userDetails.csCount < 50) | 
					
						
							| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div> | 
					
						
							| 
									
										
										
										
											2023-05-08 01:55:21 +02:00
										 |  |  |     {#if $userDetails.csCount < Constants.userJourney.themeGeneratorReadOnlyUnlock} | 
					
						
							|  |  |  |         <SubtleButton | 
					
						
							|  |  |  |                 options={{ | 
					
						
							| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  |         url: "https://github.com/pietervdvn/MapComplete/issues", | 
					
						
							|  |  |  |         newTab: true, | 
					
						
							|  |  |  |       }} | 
					
						
							| 
									
										
										
										
											2023-05-08 01:55:21 +02:00
										 |  |  |         > | 
					
						
							|  |  |  |             <span slot="message">{t.requestATheme.toString()}</span> | 
					
						
							|  |  |  |         </SubtleButton> | 
					
						
							|  |  |  |     {:else} | 
					
						
							|  |  |  |         <SubtleButton | 
					
						
							|  |  |  |                 options={{ | 
					
						
							| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  |         url: "https://pietervdvn.github.io/mc/legacy/070/customGenerator.html", | 
					
						
							|  |  |  |       }} | 
					
						
							| 
									
										
										
										
											2023-05-08 01:55:21 +02:00
										 |  |  |         > | 
					
						
							|  |  |  |       <span slot="image"> | 
					
						
							|  |  |  |         <ToSvelte construct={Svg.pencil_svg().SetClass("h-11 w-11 mx-4 bg-red")}/> | 
					
						
							| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  |       </span> | 
					
						
							| 
									
										
										
										
											2023-05-08 01:55:21 +02:00
										 |  |  |             <span slot="message">{t.createYourOwnTheme.toString()}</span> | 
					
						
							|  |  |  |         </SubtleButton> | 
					
						
							|  |  |  |     {/if} | 
					
						
							| 
									
										
										
										
											2023-02-03 22:28:11 +01:00
										 |  |  | </div> |