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yEAAoB;IAAAgE,OAAA,GAAA7C,yDAAA,EAhBpBqB,yDAAY,EACZe,sEAAY,EACZb,+DAAmB,EACnBD,uDAAW,EACXS,iEAAiB,EACjBE,+DAAc,EACdH,gEAAe,EACfF,iEAAgB,EAChBC,gEAAe,EACfH,iEAAgB,EAChBC,iEAAgB,EAChBK,+DAAc,EACdE,gEAAe;EAAA;AAAA","sources":["./src/app/routes/auth-success/auth-success.component.ts","./src/app/routes/auth-success/auth-success.component.html","./src/app/routes/auth-success/auth-success.module.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { XeroService } from '../settings/settings-xero/xero-service';\r\n\r\n@Component({\r\n selector: 'app-auth-success',\r\n templateUrl: './auth-success.component.html',\r\n styleUrls: ['./auth-success.component.less']\r\n})\r\nexport class AuthSuccessComponent implements OnInit {\r\n message1: string;\r\n message2: string;\r\n\r\n constructor(private route: ActivatedRoute, private router: Router, private xeroService: XeroService) { }\r\n\r\n ngOnInit(): void {\r\n this.route.queryParams.subscribe((params) => {\r\n switch (params['authenticator']) {\r\n case 'xero':\r\n console.log('Successful Xero authentication');\r\n this.message1 = 'You have successfully authorised Caterbook to access your Xero account.';\r\n this.message2 = 'Please wait 2 minutes for Xero to process your authorisation, before continuing to tab 2, Settings.'\r\n break;\r\n\r\n }\r\n });\r\n }\r\n\r\n close() {\r\n window.close();\r\n }\r\n}\r\n","