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M,mBACxG,CAAEiD,KAAM,wBAAyBM,KAAM,CAAEM,SAAS,EAAMC,iBAAkB,GAAKZ,UAAW5D,EAA0CqE,YAAa,CAACI,MAAoBC,aAAc,IAAMC,6GAAsCC,KAAMC,GAAMA,EAAEC,0BAC9O,CAAEnB,KAAM,8BAA+BM,KAAM,CAAEM,SAAS,GAAQX,UAAW5D,EAA0C0E,aAAc,IAAMC,kFAAkCC,KAAMC,GAAMA,EAAEE,sBACzL,CAAEpB,KAAM,QAASC,UAAWlB,YAQvBY,GAAb","names":["OrganizationCmsWrapperComponentComponent","constructor","this","ngOnInit","initialized","selectors","i0","ctx_r19","ctx_r21","OrganizationLayoutComponent","title","auth","settings","route","nav","router","cmsService","orgService","paramMap","subscribe","params","organizationId","get","window","location","hostname","split","slice","join","console","log","getOrganization","organization","getWebsitePagesForOrganization","pages","isCompanyAdmin","isLoggedIn","isOrganizationAdmin","id","fetchUserProfile","result","logout","OrganizationPageComponent","param","pageId","slug","getOrganizationPage","toString","page","setTitleAndLogPageView","navText","name","found","error","OrganizationCMSModule","ApplicationPipesModule","SharedAccountConferenceModule","SharedCMSModule","RouterModule","path","component","children","redirectTo","pathMatch","EventDetailsComponent","data","isConference","CourseDetailsComponent","MyLiveEventsComponent","canActivate","IsAuthenticatedGuard","preload","loadAfterSeconds","CompanyAdminGuard","loadChildren","Promise","then","m","OrganizationAdminModule","ConferenceCMSModule"],"sourceRoot":"webpack:///","sources":["./src/app/organization/cms/organization-cms-wrapper-component.component.ts","./src/app/organization/cms/organization-cms-wrapper-component.component.html","./src/app/organization/cms/organization-layout.component.html","./src/app/organization/cms/organization-layout.component.ts","./src/app/organization/cms/page/organization-page.component.html","./src/app/organization/cms/page/organization-page.component.ts","./src/app/organization-cms.module.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'bxl-organization-cms-wrapper-component',\r\n templateUrl: 'organization-cms-wrapper-component.component.html',\r\n})\r\nexport class OrganizationCmsWrapperComponentComponent implements OnInit {\r\n initialized = false;\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n this.initialized = true;\r\n }\r\n}\r\n","\r\n","\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\"logo\"
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { OrganizationViewModel, PageViewModel } from 'src/app/_models/generatedModels';\r\nimport { AnalyticsService } from 'src/app/_services/analytics.service';\r\nimport { AuthenticationService } from 'src/app/_services/authentication.service';\r\nimport { OrganizationCMSService, OrganizationService } from 'src/app/_services/generatedServices';\r\nimport { NavigationService } from 'src/app/_services/navigation-service';\r\nimport { SettingsProvider } from 'src/app/_services/settingsProvider.service';\r\n\r\n@Component({\r\n selector: 'bxl-organization-layout',\r\n templateUrl: 'organization-layout.component.html',\r\n})\r\nexport class OrganizationLayoutComponent implements OnInit {\r\n initialized = false;\r\n organizationId: string;\r\n organization: OrganizationViewModel;\r\n isCompanyAdmin: boolean;\r\n pages: PageViewModel[];\r\n constructor(private title: AnalyticsService, public auth: AuthenticationService, public settings: SettingsProvider, private route: ActivatedRoute, public nav: NavigationService, private router: Router, private cmsService: OrganizationCMSService, private orgService: OrganizationService) {}\r\n\r\n ngOnInit(): void {\r\n this.route.paramMap.subscribe((params) => {\r\n this.organizationId = params.get('organizationId');\r\n if (!this.organizationId) {\r\n this.organizationId = window.location.hostname.split('.').slice(0, -2).join('.');\r\n }\r\n\r\n console.log('orgId: ' + this.organizationId);\r\n\r\n this.orgService.getOrganization(this.organizationId).subscribe((organization) => {\r\n this.cmsService.getWebsitePagesForOrganization(this.organizationId).subscribe((pages) => {\r\n this.organization = organization;\r\n this.pages = pages;\r\n\r\n this.isCompanyAdmin = this.auth.isLoggedIn() && this.auth.isOrganizationAdmin(this.organization.id);\r\n\r\n this.initialized = true;\r\n });\r\n });\r\n });\r\n\r\n if (this.auth.isLoggedIn()) {\r\n this.auth.fetchUserProfile().subscribe((result) => {\r\n this.initialized = true;\r\n });\r\n }\r\n }\r\n\r\n logout() {\r\n this.auth.logout();\r\n }\r\n}\r\n","\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

\r\n

Page Not Found

\r\n

The page you are trying to access doesn't exist. Please try again.

\r\n Home\r\n
\r\n
\r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { OrganizationViewModel, PageViewModel } from 'src/app/_models/generatedModels';\r\nimport { AnalyticsService } from 'src/app/_services/analytics.service';\r\nimport { AuthenticationService } from 'src/app/_services/authentication.service';\r\nimport { OrganizationCMSService, OrganizationService } from 'src/app/_services/generatedServices';\r\nimport { NavigationService } from 'src/app/_services/navigation-service';\r\nimport { SettingsProvider } from 'src/app/_services/settingsProvider.service';\r\n\r\n@Component({\r\n selector: 'bxl-organization-page',\r\n templateUrl: 'organization-page.component.html',\r\n})\r\nexport class OrganizationPageComponent implements OnInit {\r\n initialized = false;\r\n pageId: any;\r\n page: PageViewModel;\r\n organization: OrganizationViewModel;\r\n found: boolean;\r\n constructor(public auth: AuthenticationService, public title: AnalyticsService, public settings: SettingsProvider, private route: ActivatedRoute, private router: Router, public nav: NavigationService, public cmsService: OrganizationCMSService, public orgService: OrganizationService) {}\r\n\r\n ngOnInit(): void {\r\n this.route.paramMap.subscribe((param) => {\r\n this.pageId = param.get('page');\r\n let slug = param.get('organizationId');\r\n\r\n this.orgService.getOrganization(slug).subscribe((organization) => {\r\n this.organization = organization;\r\n console.log(this.organization.id);\r\n console.log(slug);\r\n\r\n this.cmsService.getOrganizationPage(this.organization.id.toString(), this.pageId).subscribe(\r\n (page) => {\r\n this.page = page;\r\n this.title.setTitleAndLogPageView(this.page.navText + ' - ' + this.organization.name);\r\n this.initialized = true;\r\n this.found = true;\r\n },\r\n (error) => {\r\n this.initialized = true;\r\n this.found = false;\r\n }\r\n );\r\n });\r\n });\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { CourseDetailsComponent } from './courses/course-details.component';\r\nimport { EventDetailsComponent } from './events/details/event-details.component';\r\nimport { MyLiveEventsComponent } from './my-account/my-live-events/my-live-events.component';\r\nimport { OrganizationCmsWrapperComponentComponent } from './organization/cms/organization-cms-wrapper-component.component';\r\nimport { OrganizationLayoutComponent } from './organization/cms/organization-layout.component';\r\nimport { OrganizationPageComponent } from './organization/cms/page/organization-page.component';\r\nimport { SharedAccountConferenceModule } from './shared-account-conference.module';\r\nimport { SharedCMSModule } from './shared-cms-module';\r\nimport { CompanyAdminGuard } from './_guards/company-admin.gaurd';\r\nimport { IsAuthenticatedGuard } from './_guards/isAuthenticated.gaurd';\r\nimport { ApplicationPipesModule } from './_shared/modules/application-pipes.module';\r\n\r\n@NgModule({\r\n declarations: [\r\n OrganizationCmsWrapperComponentComponent,\r\n OrganizationLayoutComponent,\r\n OrganizationPageComponent\r\n ],\r\n imports: [\r\n ApplicationPipesModule.forRoot(),\r\n SharedAccountConferenceModule,\r\n SharedCMSModule,\r\n RouterModule.forChild([\r\n\r\n { path: '', component: OrganizationLayoutComponent, children:[\r\n { path: '', redirectTo: 'home', pathMatch: 'full' },\r\n { path: 'events/:id', component: EventDetailsComponent, data: { isConference: true}},\r\n { path: 'courses/:id', component: CourseDetailsComponent, data: { isConference: true}},\r\n { path: 'my-events', component: MyLiveEventsComponent, canActivate: [IsAuthenticatedGuard], data:{title:'My Live events'} },\r\n { path: ':organizationId/admin', data: { preload: true, loadAfterSeconds: 5 }, component: OrganizationCmsWrapperComponentComponent, canActivate: [CompanyAdminGuard], loadChildren: () => import('./organization-admin.module').then((m) => m.OrganizationAdminModule) },\r\n { path: 'conferences/:conferenceSlug', data: { preload: true }, component: OrganizationCmsWrapperComponentComponent, loadChildren: () => import('./conference-cms.module').then((m) => m.ConferenceCMSModule) },\r\n { path: ':page', component: OrganizationPageComponent },\r\n\r\n ]},\r\n\r\n\r\n ]),\r\n ],\r\n})\r\nexport class OrganizationCMSModule {}\r\n"]}