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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","
\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{ message1 }}

\r\n\r\n

{{ message2 }}

\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n","import { CommonModule } from \"@angular/common\";\r\nimport { NgModule } from \"@angular/core\";\r\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\r\nimport { RouterModule, mapToCanActivate } from \"@angular/router\";\r\nimport { DxCheckBoxModule, DxColorBoxModule, DxDataGridModule, DxDateBoxModule, DxPopoverModule, DxSelectBoxModule, DxSwitchModule, DxTagBoxModule, DxTooltipModule } from \"devextreme-angular\";\r\nimport { AuthGuardUserByRole } from \"src/app/shared/auth-guards/auth-guard.service\";\r\nimport { SharedModule } from \"src/app/shared/shared.module\";\r\nimport { XeroService } from \"../settings/settings-xero/xero-service\";\r\nimport { AuthSuccessComponent } from \"./auth-success.component\";\r\n\r\nconst settingsRoutes = [\r\n // settings\r\n {\r\n path: '',\r\n canActivate: mapToCanActivate([AuthGuardUserByRole]),\r\n data: { roles: ['Owner', 'Manager', 'Supervisor'] },\r\n component: AuthSuccessComponent,\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [\r\n RouterModule.forChild(settingsRoutes),\r\n CommonModule,\r\n SharedModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n DxSelectBoxModule,\r\n DxTagBoxModule,\r\n DxPopoverModule,\r\n DxDataGridModule,\r\n DxDateBoxModule,\r\n DxCheckBoxModule,\r\n DxColorBoxModule,\r\n DxSwitchModule,\r\n DxTooltipModule,\r\n ],\r\n providers: [XeroService],\r\n declarations: [\r\n AuthSuccessComponent,\r\n ],\r\n})\r\nexport class AuthSuccessModule {}"],"names":["AuthSuccessComponent","_AuthSuccessComponent","constructor","route","router","xeroService","_defineProperty","ngOnInit","queryParams","subscribe","params","console","log","message1","message2","close","window","i0","ɵɵdirectiveInject","i1","ActivatedRoute","Router","i2","XeroService","selectors","decls","vars","consts","template","AuthSuccessComponent_Template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵtext","ɵɵlistener","AuthSuccessComponent_Template_button_click_10_listener","ɵɵadvance","ɵɵtextInterpolate","CommonModule","FormsModule","ReactiveFormsModule","RouterModule","mapToCanActivate","DxCheckBoxModule","DxColorBoxModule","DxDataGridModule","DxDateBoxModule","DxPopoverModule","DxSelectBoxModule","DxSwitchModule","DxTagBoxModule","DxTooltipModule","AuthGuardUserByRole","SharedModule","settingsRoutes","path","canActivate","data","roles","component","AuthSuccessModule","_AuthSuccessModule","imports","forChild","declarations"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}