| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  | <div class="container-md card w-100" style="padding: 1em; background: var(--box-bg)" id=acceleratePreviewAnchor> | 
					
						
							| 
									
										
										
										
											2024-04-13 16:11:49 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |   @if (error) { | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     <div class="mt-2"> | 
					
						
							|  |  |  |       <app-mempool-error [error]="error"></app-mempool-error> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   }  | 
					
						
							| 
									
										
										
										
											2024-04-13 16:11:49 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |   @else if (step === 'cta') { | 
					
						
							|  |  |  |     <!-- Show A/B CTAs --> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |     <div class="row mb-1"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |       <div class="col-sm"> | 
					
						
							|  |  |  |         <h1 style="font-size: larger;">Accelerate your Bitcoin transaction?</h1> | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     <form> | 
					
						
							|  |  |  |       <div class="row"> | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  |         <div class="col-sm"> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |           <div class="form-group form-check mb-2"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |             <input type="radio" class="form-check-input" id="accelerate" name="accelerate" (change)="selectedOptionChanged($event)"> | 
					
						
							|  |  |  |             <label class="form-check-label d-flex flex-column" for="accelerate"> | 
					
						
							|  |  |  |               <span class="font-weight-bold">Accelerate</span> | 
					
						
							| 
									
										
										
										
											2024-04-16 21:14:45 +09:00
										 |  |  |               <span style="color: rgb(186, 186, 186); font-size: 14px;">Confirmation expected within ~30 minutes<br> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |                 @if (!calculating) { | 
					
						
							|  |  |  |                   <app-fiat [value]="cost"></app-fiat>fee (<span><small style="font-family: monospace;">{{ cost | number }}</small> <span class="symbol" i18n="shared.sats|sats">sats</span></span>) | 
					
						
							|  |  |  |                 } @else { | 
					
						
							|  |  |  |                   <span class="estimating">Calculating cost...</span> | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               </span> | 
					
						
							|  |  |  |             </label> | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |           </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |       </div> | 
					
						
							|  |  |  |       <div class="row"> | 
					
						
							|  |  |  |         <div class="col-sm"> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |           <div class="form-group form-check mb-2"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |             <input type="radio" class="form-check-input" id="wait" name="accelerate" (change)="selectedOptionChanged($event)"> | 
					
						
							|  |  |  |             <label class="form-check-label d-flex flex-column" for="wait"> | 
					
						
							|  |  |  |               <span class="font-weight-bold">Wait</span> | 
					
						
							| 
									
										
										
										
											2024-04-16 21:09:30 +09:00
										 |  |  |               @if (eta) { | 
					
						
							| 
									
										
										
										
											2024-04-16 21:14:45 +09:00
										 |  |  |                 <span style="color: rgb(186, 186, 186); font-size: 14px;">Confirmation expected <app-time kind="within" [time]="eta" [fastRender]="false" [fixedRender]="true"></app-time></span> | 
					
						
							| 
									
										
										
										
											2024-04-16 21:09:30 +09:00
										 |  |  |               } @else { | 
					
						
							|  |  |  |                 <span style="color: rgb(186, 186, 186); font-size: 14px;"> | 
					
						
							| 
									
										
										
										
											2024-04-16 21:12:25 +09:00
										 |  |  |                   <span>Settlement expected within several hours</span> | 
					
						
							| 
									
										
										
										
											2024-04-16 21:09:30 +09:00
										 |  |  |                 </span> | 
					
						
							|  |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |             </label> | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |           </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |       <div class="row mt-2 mb-2" [style]="(choosenOption === 'wait' || calculating) ? 'opacity: 0.25; pointer-events: none' : ''"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |         <div class="col-sm d-flex flex-row justify-content-center"> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |           <button type="button" class="mt-1 btn btn-purple rounded-pill align-self-center d-flex flex-row justify-content-center align-items-center" style="width: 200px" (click)="enableCheckoutPage()"> | 
					
						
							|  |  |  |             <img src="/resources/mempool-accelerator-sparkles-light.svg" height="20" class="mr-2" style="margin-left: -10px"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |             <span>Accelerate</span> | 
					
						
							|  |  |  |           </button> | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |       </div> | 
					
						
							|  |  |  |     </form> | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |      | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |   @else if (step === 'checkout') { | 
					
						
							|  |  |  |     <!-- Show checkout page --> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |     <div class="row mb-md-1 text-center"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |       <div class="col-sm"> | 
					
						
							|  |  |  |         <h1 style="font-size: larger;">Confirm your payment</h1> | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     <div class="row text-center"> | 
					
						
							|  |  |  |       <div class="col-sm"> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |         <div class="form-group w-100" style="font-size: 14px"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |           Payment to mempool.space for acceleration of txid <a [routerLink]="'/tx/' + txid" target="_blank">{{ txid.substr(0, 10) }}..{{ txid.substr(-10) }}</a> | 
					
						
							| 
									
										
										
										
											2024-04-13 16:11:49 +09:00
										 |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     @if (!loadingCashapp) { | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  |       <div class="row text-center mt-1"> | 
					
						
							|  |  |  |         <div class="col-sm"> | 
					
						
							|  |  |  |           <div class="form-group w-100"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |             <span><u><strong>Total additional cost</strong></u><br> | 
					
						
							|  |  |  |               <span style="font-size: 16px" class="d-block mt-2"> | 
					
						
							|  |  |  |                 Pay | 
					
						
							|  |  |  |                 <strong><app-fiat [value]="cost"></app-fiat></strong> | 
					
						
							|  |  |  |                 with | 
					
						
							|  |  |  |               </span> | 
					
						
							|  |  |  |             </span> | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  |           </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     <div class="row text-center mt-1"> | 
					
						
							|  |  |  |       <div class="col-sm"> | 
					
						
							|  |  |  |         <div class="form-group w-100"> | 
					
						
							|  |  |  |           <div id="cash-app-pay" class="d-inline-block" [style]="loadingCashapp ? 'opacity: 0; width: 0px; height: 0px; pointer-events: none;' : ''"></div> | 
					
						
							|  |  |  |           @if (loadingCashapp) { | 
					
						
							|  |  |  |           <div display="d-flex flex-row justify-content-center"> | 
					
						
							|  |  |  |             <span>Loading payment method...</span> | 
					
						
							|  |  |  |             <div class="ml-2 spinner-border text-light" style="width: 25px; height: 25px"></div> | 
					
						
							|  |  |  |           </div> | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     <hr> | 
					
						
							|  |  |  |     <div class="row mt-2 mb-2 text-center"> | 
					
						
							|  |  |  |       <div class="col-sm d-flex flex-column"> | 
					
						
							|  |  |  |         <small>Changed your mind?</small> | 
					
						
							| 
									
										
										
										
											2024-04-16 16:56:37 +09:00
										 |  |  |         <button type="button" class="mt-1 btn btn-secondary btn-sm rounded-pill align-self-center" style="width: 200px" (click)="step = 'cta'">Go Back</button> | 
					
						
							| 
									
										
										
										
											2024-04-13 16:11:49 +09:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     </div> | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-04-13 20:53:19 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |   @else if (step === 'processing') { | 
					
						
							| 
									
										
										
										
											2024-04-16 16:01:52 +09:00
										 |  |  |     <div class="row mb-1 text-center"> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |       <div class="col-sm"> | 
					
						
							|  |  |  |         <h1 style="font-size: larger;">Confirm your payment</h1> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     <div class="row text-center mt-1"> | 
					
						
							|  |  |  |       <div class="col-sm"> | 
					
						
							|  |  |  |         <div class="form-group w-100"> | 
					
						
							|  |  |  |           <!-- Processing payment --> | 
					
						
							|  |  |  |           <div id="cash-app-pay" class="d-inline-block" [style]="'opacity: 0; width: 0px; height: 0px; pointer-events: none;'"></div> | 
					
						
							|  |  |  |           <div display="d-flex flex-row justify-content-center"> | 
					
						
							|  |  |  |             <span>We are processing your payment...</span> | 
					
						
							|  |  |  |             <div class="ml-2 spinner-border text-light" style="width: 25px; height: 25px"></div> | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |           </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 16:11:49 +09:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-04-14 16:29:56 +09:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 23:07:19 +09:00
										 |  |  |   } | 
					
						
							|  |  |  |    | 
					
						
							| 
									
										
										
										
											2024-04-13 21:13:11 +09:00
										 |  |  | </div> |