| 
									
										
										
										
											2018-01-28 21:07:31 -08:00
										 |  |  | <a rel="nofollow noopener" | 
					
						
							|  |  |  |    target="_blank" | 
					
						
							|  |  |  |    href="{{href}}" | 
					
						
							| 
									
										
										
										
											2018-04-15 16:00:09 -07:00
										 |  |  |    aria-label="{{ariaLabel || ''}}" | 
					
						
							| 
									
										
										
										
											2018-02-10 14:35:21 -08:00
										 |  |  |    class="{{className || ''}} {{showIcon ? 'external-link-with-icon' : ''}} {{normalIconColor ? 'normal-icon-color' : ''}}"> | 
					
						
							| 
									
										
										
										
											2018-03-06 23:27:36 -08:00
										 |  |  |   <slot></slot>{{#if showIcon}} | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |     <svg class="external-link-svg"> | 
					
						
							| 
									
										
										
										
											2018-01-28 21:07:31 -08:00
										 |  |  |       <use xlink:href="#fa-external-link" /> | 
					
						
							|  |  |  |     </svg> | 
					
						
							| 
									
										
										
										
											2018-03-06 23:27:36 -08:00
										 |  |  |   {{/if}}</a> | 
					
						
							| 
									
										
										
										
											2018-01-28 19:01:51 -08:00
										 |  |  | <style> | 
					
						
							| 
									
										
										
										
											2018-01-28 21:07:31 -08:00
										 |  |  |   .external-link-with-icon { | 
					
						
							| 
									
										
										
										
											2018-01-28 19:01:51 -08:00
										 |  |  |     display: inline-flex; | 
					
						
							|  |  |  |     align-items: center; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   .external-link-with-icon .external-link-svg { | 
					
						
							| 
									
										
										
										
											2018-01-28 19:01:51 -08:00
										 |  |  |     margin-left: 4px; | 
					
						
							|  |  |  |     width: 14px; | 
					
						
							|  |  |  |     height: 14px; | 
					
						
							|  |  |  |     fill: var(--deemphasized-text-color); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   .external-link-with-icon.normal-icon-color .external-link-svg { | 
					
						
							| 
									
										
										
										
											2018-02-10 14:35:21 -08:00
										 |  |  |     fill: var(--body-text-color); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-01-28 21:07:31 -08:00
										 |  |  | </style> | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  |   export default { | 
					
						
							|  |  |  |     oncreate() { | 
					
						
							|  |  |  |       this.set({className: this.get('class')}) // workaround for "class" property name bug in svelte | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | </script> |