{"version":3,"sources":["./src/app/features/home/home.component.ts","./src/app/features/home/home.component.html","crypto (ignored)","./src/environments/environment.ts","./src/app/app.component.ts","./src/app/app.module.ts","./src/app/app-routing.module.ts","./src/main.ts","./$_lazy_route_resource lazy namespace object"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2D;;;;AASpD,MAAM,aAAa;IASxB,YAAoB,KAAqB,EAAU,MAAc,EAAS,WAAwB,EAAU,oBAA0C;QAAlI,UAAK,GAAL,KAAK,CAAgB;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAS,gBAAW,GAAX,WAAW,CAAa;QAAU,yBAAoB,GAApB,oBAAoB,CAAsB;QANtJ,4CAA4C;QAC5C,iBAAY,GAAU,EAAE;QAIxB,iBAAY,GAAG,KAAK,CAAC;IACqI,CAAC;IAE3J,QAAQ;QACN,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;YACxC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;YAC7B,IAAI,CAAC,KAAK,GAAE,MAAM,CAAC,OAAO,CAAC;YAC3B,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;YAC1C,IAAI,CAAC,IAAI,EAAE,CAAC;QAChB,CAAC,CAAC;IAEF,CAAC;IAED,eAAe;QACb,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5E,CAAC;IAED,IAAI;QACF,YAAY;QAEZ,IAAG,IAAI,CAAC,OAAO,IAAI,KAAK,EAAC;YACvB,IAAI,CAAC,UAAU,GAAG,wEAAW,CAAC,UAAU,CAAC;SAC1C;QAED,mDAAmD;QACnD,kCAAkC;QAClC,8BAA8B;QAC9B,IAAI,IAAI,GAAG,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,QAAQ,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A,CAAC,EAAE;gBACJ,eAAe,EAAE,mEAAe,CAAC,QAAQ;gBACzC,WAAW,EAAE;oBACb,MAAM,EAAE,CAAC,WAAW,CAAC;iBACpB;gBACD,gBAAgB,EAAE,eAAe;aAChC,EAAE;gBACH,eAAe,EAAE,mEAAe,CAAC,QAAQ;gBACzC,oBAAoB,EAAG,IAAI,GAAG,CACxB;oBACN,CAAC,qCAAqC,EAAE,CAAC,WAAW;4BACpD,SAAS,CAAC,CAAC;iBACV,CAAC;aACD,CAAC;SAEL;mIAQU,SAAS,mBAhDlB,2DAAY;QACZ,2EAAa,aAGb,uEAAa;QACb,oEAAgB;;;;;;;;;;;;;ACnBpB;AAAA;AAAA;AAAA;AAAA;AAAuD;AACR;;;AAE/C,MAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,2DAAY,EAAE;IACrC,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE;CACjD,CAAC;AAMK,MAAM,gBAAgB;;gFAAhB,gBAAgB;+FAAhB,gBAAgB;mGAHlB,CAAC,4DAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAC7B,4DAAY;mIAEX,gBAAgB,uFAFjB,4DAAY;;;;;;;;;;;;;;;;;;;ACXuB;AAGF;AACY;AAEzD,IAAI,qEAAW,CAAC,UAAU,EAAE;IAC1B,oEAAc,EAAE,CAAC;CAClB;AAED,2EAAwB,CAAC,eAAe,CAAC,yDAAS,CAAC;KAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;;;;;;;;;;;;ACXpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,qC","file":"main.js","sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { MsalService, MsalBroadcastService } from '@azure/msal-angular';\nimport { environment } from 'src/environments/environment';\n\n\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.css']\n})\nexport class HomeComponent implements OnInit {\n urlType: string;\n SVMformURL: string;\n // enterpriseId: string =\"indhumathi.selvam\"\n enterpriseId: string =\"\"\n finalSVMurl: string;\n url: string;\n ospid: string;\n loginDisplay = false;\n constructor(private route: ActivatedRoute, private router: Router,private authService: MsalService, private msalBroadcastService: MsalBroadcastService) { }\n\n ngOnInit(): void {\n this.route.queryParams.subscribe(params => {\n this.urlType = params['type']\n this.ospid= params['ospid']\n this.enterpriseId = params['enterpriseId']\n this.test();\n })\n  \n }\n\n setLoginDisplay() {\n this.loginDisplay = this.authService.instance.getAllAccounts().length > 0;\n }\n\n test(){\n // debugger;\n \n if(this.urlType == 'osp'){\n this.SVMformURL = environment.SVMformURL;\n }\n \n // const StringBuilder = require(\"string-builder\");\n // const sb = new StringBuilder();\n // sb.append(this.SVMformURL);\n let test = this.SVMformURL + ((\"?type=\" + this.urlType + \"&ospid=\" + this.ospid))\n console.log('test', test);\n \n // sb.append(\"?\" + this.urlType.ToString()); \n //console.log(sb.ToString()) ;\n if (this.enterpriseId != '' && this.enterpriseId != undefined && sessionStorage.getItem('ospid')!=null)\n {\n this.finalSVMurl = test + \"&searchentid=\" + this.enterpriseId;\n //this.finalSVMurl = sb.ToString();\n this.url=this.finalSVMurl;\n console.log(\"FinalUrl\", this.url)\n window.location.href = this.url;\n } \n \n }\n\n}\n","

home works!

\n\n   \n   SVM form links for BPO and IO \n   \n   \n \n","/* (ignored) */","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false,\n clientId: 'a6e43598-8b05-48d8-b789-11485cfb9607',\n authority: 'https://login.microsoftonline.com/f3211d0e-125b-42c3-86db-322b19a65a22',\n redirectUri: 'https://workbenchops.ciostage.accenture.com/', \n SVMformURL: 'https://uatesting-accentureopsworkbench.cs63.force.com/osp',\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\n","import { OnInit } from '@angular/core';\nimport { OnDestroy } from '@angular/core';\nimport { Component } from '@angular/core';\nimport { ActivatedRoute, ParamMap, Router } from '@angular/router';\n// MSAL related imports\nimport { MsalBroadcastService, MsalService } from '@azure/msal-angular';\nimport { InteractionStatus } from '@azure/msal-browser';\nimport { Subject } from 'rxjs';\nimport { filter, takeUntil } from 'rxjs/operators';\n\nimport * as CryptoJS from 'crypto-js';\nimport { environment } from 'src/environments/environment';\n\n\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css'],\n})\nexport class AppComponent implements OnInit, OnDestroy {\n SVMformURL: string;\n\n urlType: string;\n finalSVMurl: any;\n url: any;\n isIframe = false;\n loginDisplay = false;\n ospId:string='';\n enterpriseId: string = '';\n\n constructor(\n private route: ActivatedRoute,\n private router: Router,\n private authService: MsalService,\n private msalBroadcastService: MsalBroadcastService\n ) {}\n\n loggedIn = false;\n private readonly _destroying$ = new Subject();\n //MSAL related function\n\n public login(): void {\n const activeAccount = this.authService.instance.getActiveAccount();\n if (!activeAccount) {\n if (this.authService.instance.getAllAccounts().length > 0) {\n const accounts = this.authService.instance.getAllAccounts();\n this.authService.instance.setActiveAccount(accounts[0]);\n } else {\n this.authService.loginRedirect();\n }\n }\n }\n\n logout() {\n this.authService.logout();\n }\n\n checkoutAccount() {\n this.loggedIn = !this.authService.instance.getActiveAccount();\n }\n\n checkAndSetActiveAccount() {\n let activeAccount = this.authService.instance.getActiveAccount();\n if (\n !activeAccount &&\n this.authService.instance.getAllAccounts().length > 0\n ) {\n let accounts = this.authService.instance.getAllAccounts();\n this.authService.instance.setActiveAccount(accounts[0]);\n }\n }\n\n ngOnDestroy(): void {\n throw new Error('Method not implemented.');\n }\n\n EncryptText(value: string) { // encrypt api request parameter with aes secretkey\n\n var key = CryptoJS.enc.Utf8.parse('5TGB&YHN7UJM(IK<5TGB&YHN7UJM(IK<');\n var iv = CryptoJS.enc.Utf8.parse('!QAZ2WSX#EDC4RFV');\n //var iv = new Uint16Array(16);\n var encrypted = CryptoJS.AES.encrypt(JSON.stringify(value), key,\n {\n BlockSize: 128,\n keySize: 256,\n iv: iv,\n key: key,\n mode: CryptoJS.mode.CBC,\n padding: CryptoJS.pad.Pkcs7,\n });\n return encrypted.toString();\n}\n\nsetLoginDisplay() {\n this.loginDisplay = this.authService.instance.getAllAccounts().length > 0;\n}\n\n\n callRoute(enterpriseId:string){\n let objArray = [{ type: 'osp', ospid: sessionStorage.getItem('ospid'),enterpriseId: this.EncryptText(enterpriseId)}];\n this.router.navigate(['/'], {\n queryParams: {\n type: objArray.map((a) => a.type),\n ospid: objArray.map((b) => b.ospid),\n enterpriseId: objArray.map((c) => c.enterpriseId),\n },\n });\n }\n\n ngOnInit(): void {\n const result = this.checkUserLoggedIn();\n let url = window.location.href;\n this.ospId = url.split('ospid=')[1];\n if(this.ospId!=='' && this.ospId!==null && this.ospId!==undefined)\n sessionStorage.setItem('ospid',this.ospId);\n console.log(this.ospId);\n // debugger;\n if(result && sessionStorage.getItem('ospid')!=null){\n // alert(\"user Logged in \"+result);\n // this.callRoute(this.getEnterpriseId());\n // this.setLoginDisplay();\n this.redirect()\n }\n else{\n this.login();\n this.msalBroadcastService.inProgress$\n .pipe(\n filter((status: InteractionStatus) => status === InteractionStatus.None),\n takeUntil(this._destroying$)\n )\n .subscribe(() => {\n this.checkAndSetActiveAccount();\n // this.callRoute(this.getEnterpriseId());\n // this.setLoginDisplay();\n this.redirect();\n })\n }\n \n }\n\n checkUserLoggedIn(){\n const accounts = this.authService.instance.getAllAccounts();\n return accounts.length>0;\n\n }\n\n getEnterpriseId():string{\n const loggedInId = this.authService.instance.getActiveAccount().username.split('@')[0];\n console.log(\"Logged in user is:\",loggedInId)\n return this.EncryptText(loggedInId);\n }\n\n redirect(){\n // debugger;\n this.enterpriseId = this.getEnterpriseId();\n console.log(\"Encrypted Id:\",this.enterpriseId);\n this.urlType='osp';\n if(this.urlType == 'osp'){\n this.SVMformURL = environment.SVMformURL;\n }\n \n if (this.enterpriseId != '' && this.enterpriseId != undefined && sessionStorage.getItem('ospid')!=null)\n {\n let test = this.SVMformURL + ((\"?type=\" + this.urlType + \"&ospid=\" + sessionStorage.getItem('ospid')))\n console.log('test', test);\n this.finalSVMurl = test + \"&searchentid=\" + this.enterpriseId;\n //this.finalSVMurl = sb.ToString();\n this.url=this.finalSVMurl;\n console.log(\"FinalUrl\", this.url)\n window.location.href = this.url;\n } \n \n }\n\n}\n","import { HTTP_INTERCEPTORS } from '@angular/common/http';\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { MsalBroadcastService, MsalGuard, MsalInterceptor, MsalModule, MsalRedirectComponent, MsalService } from '@azure/msal-angular';\nimport { InteractionType, PublicClientApplication } from '@azure/msal-browser';\nimport { environment } from 'src/environments/environment';\n\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport { HomeComponent } from './features/home/home.component';\n\n\n\n@NgModule({\n declarations: [\n AppComponent,\n HomeComponent\n ],\n imports: [\n BrowserModule,\n AppRoutingModule,\n // MsalRedirectComponent,\n MsalModule.forRoot( new PublicClientApplication({ \n auth: {\n clientId: environment.clientId,\n authority: environment.authority,\n redirectUri: environment.redirectUri, \n postLogoutRedirectUri: '',\n navigateToLoginRequestUrl: true\n },\n cache: {\n cacheLocation : \"localStorage\",\n storeAuthStateInCookie: true, \n },\n system: {\n loggerOptions: {\n loggerCallback: () => {},\n piiLoggingEnabled: false\n }\n }\n }), { // MSAL Guard Configuration\n interactionType: InteractionType.Redirect, \n authRequest: {\n scopes: ['user.read']\n },\n loginFailedRoute: \"/login-failed\" \n }, { // MSAL Interceptor Configuration\n interactionType: InteractionType.Redirect, \n protectedResourceMap : new Map | \n null>([\n [\"https://graph.microsoft.com/v1.0/me\", [\"user.read\", \n \"profile\"]],\n ]),\n })\n\n ],\n providers: [\n { provide: HTTP_INTERCEPTORS, useClass: MsalInterceptor,\n multi: true },\n MsalGuard, MsalService, MsalBroadcastService\n ],\n bootstrap: [AppComponent, MsalRedirectComponent]\n})\nexport class AppModule { }","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { AppComponent } from './app.component';\n\nconst routes: Routes = [\n { path: \"\", component: AppComponent },\n { path: \"\", redirectTo: \"/\", pathMatch: \"full\" }\n];\n\n@NgModule({\n imports: [RouterModule.forRoot(routes)],\n exports: [RouterModule]\n})\nexport class AppRoutingModule { }\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.error(err));\n","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = \"zn8P\";"],"sourceRoot":"webpack:///"}