| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  | <div class="code"> | 
					
						
							| 
									
										
										
										
											2022-05-21 08:20:35 -04:00
										 |  |  |   <ul ngbNav #navCodeTemplate="ngbNav" class="nav-tabs code-tab" role="tablist"> | 
					
						
							|  |  |  |     <li ngbNavItem *ngIf="code.codeTemplate.curl && method !== 'websocket'" role="presentation"> | 
					
						
							|  |  |  |       <a ngbNavLink (click)="adjustContainerHeight( $event )" role="tab">cURL</a> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |       <ng-template ngbNavContent> | 
					
						
							| 
									
										
										
										
											2021-09-03 07:04:19 -03:00
										 |  |  |         <div class="subtitle"><ng-container i18n="API Docs code example">Code Example</ng-container> <app-clipboard [text]="wrapCurlTemplate(code)"></app-clipboard></div> | 
					
						
							|  |  |  |         <pre><code [innerText]="wrapCurlTemplate(code)"></code></pre> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |     </li> | 
					
						
							| 
									
										
										
										
											2022-05-21 08:20:35 -04:00
										 |  |  |     <li ngbNavItem *ngIf="showCodeExample[network]" role="presentation"> | 
					
						
							|  |  |  |       <a ngbNavLink (click)="adjustContainerHeight( $event )" role="tab">CommonJS</a> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |       <ng-template ngbNavContent> | 
					
						
							| 
									
										
										
										
											2021-09-03 07:04:19 -03:00
										 |  |  |         <div class="subtitle"><ng-container i18n="API Docs code example">Code Example</ng-container> <app-clipboard [text]="wrapCommonJS(code)"></app-clipboard></div> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |         <div class="links"> | 
					
						
							| 
									
										
										
										
											2022-03-11 11:25:17 -05:00
										 |  |  |           <a [href]="npmGithubLink()" target="_blank">GitHub Repo</a> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-09-03 07:04:19 -03:00
										 |  |  |         <pre><code [innerText]="wrapCommonJS(code)"></code></pre> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |     </li> | 
					
						
							| 
									
										
										
										
											2022-05-21 08:20:35 -04:00
										 |  |  |     <li ngbNavItem *ngIf="showCodeExample[network]" role="presentation"> | 
					
						
							|  |  |  |       <a ngbNavLink (click)="adjustContainerHeight( $event )" role="tab">ES Module</a> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |       <ng-template ngbNavContent> | 
					
						
							| 
									
										
										
										
											2021-08-11 12:50:49 -03:00
										 |  |  |         <div class="subtitle"><ng-container i18n="API Docs install lib">Install Package</ng-container> <app-clipboard [text]="wrapImportTemplate()"></app-clipboard></div> | 
					
						
							| 
									
										
										
										
											2021-06-12 17:18:59 -05:00
										 |  |  |         <div class="links"> | 
					
						
							| 
									
										
										
										
											2022-03-11 11:25:17 -05:00
										 |  |  |           <a [href]="npmGithubLink()" target="_blank">GitHub Repo</a> | 
					
						
							|  |  |  |           <a [href]="npmModuleLink()" target="_blank">NPM Package</a> | 
					
						
							| 
									
										
										
										
											2021-06-12 17:18:59 -05:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-08-11 12:50:49 -03:00
										 |  |  |         <pre><code [innerText]="wrapImportTemplate()"></code></pre> | 
					
						
							| 
									
										
										
										
											2021-09-03 07:04:19 -03:00
										 |  |  |         <div class="subtitle"><ng-container i18n="API Docs code example">Code Example</ng-container> <app-clipboard [text]="wrapEsModule(code)"></app-clipboard></div> | 
					
						
							|  |  |  |         <pre><code [innerText]="wrapEsModule(code)"></code></pre> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |     </li> | 
					
						
							|  |  |  |   </ul> | 
					
						
							|  |  |  |   <div [ngbNavOutlet]="navCodeTemplate"></div> | 
					
						
							| 
									
										
										
										
											2021-09-03 07:04:19 -03:00
										 |  |  |   <div *ngIf="code.codeTemplate && wrapResponse(code) !== ''" class="response"> | 
					
						
							|  |  |  |     <div class="subtitle"><ng-container i18n="API Docs API response">Response</ng-container> <app-clipboard [text]="wrapResponse(code)"></app-clipboard></div> | 
					
						
							|  |  |  |     <pre><code [innerText]="wrapResponse(code)"></code></pre> | 
					
						
							| 
									
										
										
										
											2021-06-06 17:06:56 -03:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2021-09-03 07:04:19 -03:00
										 |  |  | </div> |