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,GACN2H,UAAW,OACXC,cAAeA,IAAM,OAAO,qBAA2C,EAAEC,KAAKC,GAAKA,EAAEC,sBAAsB,EAC3GX,KAAMV,GAER,CACE1G,KAAM,OACN2H,UAAW,OACXC,cAAeA,IAAM,OAAO,qBAAqD,EAAEC,KAAKC,GAAKA,EAAEE,0BAA0B,EACzHZ,KAAMV,GAER,CACE1G,KAAM,WACN2H,UAAW,OACXC,cAAeA,IAAM,OAAO,qBAAqD,EAAEC,KAAKC,GAAKA,EAAEE,0BAA0B,EACzHZ,KAAMV,EACP,EACF,EAQYuB,IAAsB,KAA7B,GAAOA,GAAP,KAAOA,EAAsB,GAAAhM,CAAA,CAAAsG,IAAA,UAAAsB,CAAA,aAAAA,CAAA,EAAtBoE,IAAsB,GAAAhM,CAAA,CAAAiM,IAAA,CAAAC,CAAA,EAAA7E,IAAA,CAAtB2E,CAAsB,GAAAhM,CAAA,CAAAmM,IAAA,CAAAC,CAAA,EAAAC,OAAA,EAJ7BC,EAAaC,SAASxB,EAAM,EAEtBuB,CAAY,IAElB,GAAON,GAAPQ,QAAOR,EAAsB,MChErC,GAAaS,KAAe,KAAtB,GAAOA,GAAP,KAAOA,EAAe,GAAAzM,CAAA,CAAAsG,IAAA,UAAAsB,CAAA,aAAAA,CAAA,EAAf6E,IAAe,GAAAzM,CAAA,CAAAiM,IAAA,CAAAC,CAAA,EAAA7E,IAAA,CAAfoF,CAAe,GAAAzM,CAAA,CAAAmM,IAAA,CAAAC,CAAA,EAAAC,OAAA,EALxBL,GACAU,GACAjK,CAAkB,IAGhB,GAAOgK,GAAPE,QAAOF,EAAe,aAAAG,EAAA,IAAAH,eAAA","names":["ɵɵelement","e","i","S","r","w","ɵɵproperty","productScrollerTpl_r2","ctx_r0","scaleUpOnRender","productsQuery","Le","t","Qe","ɵɵtemplate","StandFreeComponent_Conditional_14_Defer_0_Template","ɵɵdefer","StandFreeComponent_Conditional_14_Defer_1_DepsFn","k","ze","Z","$implicit","item_r3","ɵɵpipeBind1","company","ɵɵpureFunction1","_c3","ɵɵpureFunction0","_c2","slug","Ue","je","StandFreeComponent_Conditional_18_info_bar_0_Template","_c4","Ae","Ge","StandFreeComponent_Conditional_19_info_bar_0_Template","He","newsScrollerTpl_r4","newsQuery","We","ɵɵelementStart","StandFreeComponent_div_20_Defer_1_Template","ɵɵelementEnd","Be","index","item_r5","index_r6","_c5","RANDOM_SEED","HAS_PRODUCTS","HAS_NEWS","l","StandFreeComponent","_a","constructor","iconsLoader","randomProductsPageGQL","newsGQL","locale","standService","usersService","router","routesService","platform","transferState","dataSharingService","signal","currentHallCssClass","computed","cat","currentCategory","parent","cssClass","isCanonicalPage","path","primaryPath","hasProducts","hasNews","randomSeed","DEFAULT_RANDOM_SEED","load","overlayVisible$","subscribe","isVisible","showOverlay","ngOnInit","getCurrentCompany","pipe","untilDestroyed","fetchPolicy","Error","set","isBrowser","get","getRandomSeed","hasKey","watch","newsType","NewsTypeEnum","all","newsStatus","NewsStatusEnum","portalLevelValidated","lang","category","first","seed","appendCompanyMetaTags","canonicalDefaultUrl","updateFreeCompanyData","checkPermission","navigate","getCompanyEditUrl","ɵfac","ɵɵdirectiveInject","IconsLoader","RandomProductsPageGQL","NewsGQL","LOCALE_ID","StandService","UsersService","Router","RoutesService","Platform","TransferState","DataSharingService","ɵcmp","H","type","selectors","viewQuery","rf","ctx","$","Oe","s","V","J","description","standalone","features","Y","ɵɵStandaloneFeature","decls","vars","consts","i18n_0","$localize","ɵɵi18n","ɵɵtext","StandFreeComponent_Conditional_13_Template","StandFreeComponent_Conditional_14_Template","StandFreeComponent_ng_template_15_Template","ɵɵtemplateRefExtractor","StandFreeComponent_Conditional_18_Template","StandFreeComponent_Conditional_19_Template","StandFreeComponent_div_20_Template","StandFreeComponent_ng_template_21_Template","ɵɵadvance","ɵɵstyleProp","ɵɵtextInterpolate","shortName","ɵɵconditional","_c1","dependencies","RouterOutlet","RenderIfDirective","InfoBarComponent","PagedVirtualScrollerModule","PagedVirtualScrollerComponent","ProductBlockComponent","NewsBlockComponent","GetCompanyUrlPipe","styles","encapsulation","changeDetection","__decorate","UntilDestroy","__metadata","String","pagesData","isCacheable","breadcrumb","layout","StandLayoutEnum","standFree","routes","component","StandFooterComponent","outlet","data","shouldReuseOnSlide","InfoBarMobileComponent","resolve","resolvedData","children","StandHeaderComponent","pathMatch","loadComponent","then","c","DashboardFreeComponent","GetBusinessAccessComponent","StandFreeRoutingModule","ɵmod","_","ɵinj","b","imports","RouterModule","forChild","_StandFreeRoutingModule","StandFreeModule","StandFooterModule","_StandFreeModule","Wt"],"ignoreList":[],"sources":["src/app/stand-free/stand-free.component.html","src/app/stand-free/stand-free.component.ts","src/app/stand-free/stand-free-routing.module.ts","src/app/stand-free/stand-free.module.ts"],"sourcesContent":["\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n You may be interested in:{{this.standService.currentCategory().shortName}}\r\n
\r\n
\r\n
\r\n @if(isCanonicalPage()) {\r\n \r\n } @else {\r\n @defer() {\r\n \r\n }\r\n }\r\n\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n @if (showOverlay) {\r\n \r\n }\r\n @else{\r\n \r\n }\r\n
\r\n @defer () {\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","import { StandService } from 'app/stand/stand.service';\r\nimport { ICompany } from '@collections/companies/interfaces/company.interface';\r\nimport { Component, Inject, LOCALE_ID, OnInit, ViewChild, ViewEncapsulation, ElementRef, ChangeDetectionStrategy, signal, computed } from '@angular/core';\r\nimport { QueryRef } from 'apollo-angular';\r\nimport { IconsLoader } from 'app/shared/services/icons/icons-loader.service';\r\nimport { RandomProductsPageGQL, RandomProductsPageResponse, DEFAULT_RANDOM_SEED } from '@shared/services/products/graphql/random-products-page.gql.service';\r\nimport { Platform } from '@angular/cdk/platform';\r\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\r\nimport { UsersService } from 'app/shared/services/users/users.service';\r\nimport { RoutesService } from 'app/shared/services/routes/route.service';\r\nimport { WatchQueryFetchPolicy } from '@apollo/client/core';\r\nimport { GetCompanyUrlPipe } from '../shared/pipes/get-company-url.pipe';\r\nimport { ProductBlockComponent } from '../products/views/product-block/product-block.component';\r\nimport { InfoBarComponent } from '../stand/components/info-bar/info-bar.component';\r\nimport { RenderIfDirective } from '../shared/directives/render-if.directive';\r\nimport { NewsBlockComponent } from 'app/news/views/news-block/news-block.component';\r\nimport { NewsGQL, NewsResponse } from 'app/shared/services/news/news.gql.service';\r\nimport { NewsStatusEnum, NewsTypeEnum } from '@collections/news/enums/news.enums';\r\nimport { TransferState, makeStateKey } from '@angular/core';\r\nimport { PagedVirtualScrollerModule } from 'app/shared/components/paged-virtual-scroller/paged-virtual-scroller.module';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\nimport { DataSharingService } from 'app/stand/components/data-sharing.service';\r\n\r\nexport const RANDOM_SEED = makeStateKey('expo.random_seed');\r\nexport const HAS_PRODUCTS = makeStateKey('expo.has_products');\r\nexport const HAS_NEWS= makeStateKey('expo.has_news');\r\n\r\n@UntilDestroy()\r\n@Component({\r\n selector: 'stand-free',\r\n templateUrl: './stand-free.component.html',\r\n styleUrls: ['./stand-free.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true,\r\n imports: [\r\n RouterOutlet,\r\n RenderIfDirective,\r\n InfoBarComponent,\r\n PagedVirtualScrollerModule,\r\n ProductBlockComponent,\r\n NewsBlockComponent,\r\n GetCompanyUrlPipe,\r\n ],\r\n providers: [\r\n RandomProductsPageGQL,\r\n NewsGQL\r\n ]\r\n})\r\nexport class StandFreeComponent implements OnInit {\r\n scaleUpOnRender = true;\r\n productsQuery: QueryRef;\r\n newsQuery: QueryRef;\r\n showOverlay: boolean;\r\n company = signal(null);\r\n\r\n @ViewChild('description', { static: false }) description: ElementRef;\r\n\r\n\r\n currentHallCssClass = computed(() => {\r\n const cat = this.standService.currentCategory();\r\n return cat.parent?.cssClass ?? cat.cssClass;\r\n });\r\n\r\n isCanonicalPage = computed(() => {\r\n const cat = this.standService.currentCategory();\r\n return cat.path === this.company().primaryPath;\r\n });\r\n\r\n hasProducts = signal(false);\r\n hasNews = signal(false);\r\n private randomSeed: number = DEFAULT_RANDOM_SEED;\r\n\r\n constructor(\r\n private iconsLoader: IconsLoader,\r\n private randomProductsPageGQL: RandomProductsPageGQL,\r\n private newsGQL: NewsGQL,\r\n @Inject(LOCALE_ID) private locale: string,\r\n public standService: StandService,\r\n private readonly usersService: UsersService,\r\n private router: Router,\r\n private routesService: RoutesService,\r\n private platform: Platform,\r\n private readonly transferState: TransferState,\r\n private dataSharingService: DataSharingService,\r\n ) {\r\n this.iconsLoader.load('stand');\r\n this.iconsLoader.load('halls');\r\n\r\n this.dataSharingService.overlayVisible$.subscribe(isVisible =>{\r\n this.showOverlay = isVisible;\r\n })\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this.standService.getCurrentCompany()\r\n .pipe(untilDestroyed(this))\r\n .subscribe(company => {\r\n let fetchPolicy: WatchQueryFetchPolicy = 'cache-first';\r\n if (!company) {\r\n throw new Error('Company not found!')\r\n }\r\n\r\n this.company.set(company);\r\n if (this.platform.isBrowser) {\r\n this.randomSeed = this.transferState.get(RANDOM_SEED, this.randomProductsPageGQL.getRandomSeed());\r\n this.hasProducts.set(this.transferState.get(HAS_PRODUCTS, false));\r\n this.hasNews.set(this.transferState.get(HAS_NEWS, false));\r\n this.scaleUpOnRender = !this.transferState.hasKey(RANDOM_SEED);\r\n } else {\r\n this.randomSeed = this.randomProductsPageGQL.getRandomSeed();\r\n this.transferState.set(RANDOM_SEED, this.randomSeed);\r\n }\r\n\r\n this.newsQuery = this.newsGQL.watch({\r\n newsType: NewsTypeEnum.all,\r\n newsStatus: NewsStatusEnum.portalLevelValidated,\r\n lang: this.locale,\r\n category: this.standService.currentCategory().path,\r\n first: 6\r\n });\r\n\r\n this.productsQuery = this.randomProductsPageGQL.watch({\r\n lang: this.locale,\r\n category: this.standService.currentCategory().path,\r\n seed: this.randomSeed,\r\n first: 16\r\n }, {\r\n fetchPolicy: fetchPolicy\r\n });\r\n\r\n // setTimeout(() => {\r\n\r\n \r\n // this.newsQuery.valueChanges\r\n // .pipe(\r\n // take(1)\r\n // ).subscribe(({data}) => {\r\n // const hasNews = data.news.totalCount > 0;\r\n // this.hasNews.set(hasNews);\r\n // if(!this.platform.isBrowser) {\r\n // this.transferState.set(HAS_NEWS, hasNews);\r\n // }\r\n // });\r\n \r\n\r\n \r\n // this.productsQuery.valueChanges\r\n // .pipe(\r\n // take(1)\r\n // ).subscribe(({data}) => {\r\n // const hasProducts = data.randomProductsPage.totalCount > 0;\r\n // this.hasProducts.set(hasProducts);\r\n // if(!this.platform.isBrowser) {\r\n // this.transferState.set(HAS_PRODUCTS, hasProducts);\r\n // }\r\n // });\r\n // }, 100);\r\n \r\n\r\n this.standService.appendCompanyMetaTags(this.standService.canonicalDefaultUrl);\r\n\r\n });\r\n // });\r\n \r\n }\r\n\r\n updateFreeCompanyData(): void {\r\n this.usersService.checkPermission(() => {\r\n this.router.navigate([this.routesService.getCompanyEditUrl(this.company())]);\r\n });\r\n }\r\n\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { RouterModule, Routes } from \"@angular/router\";\r\nimport { StandService } from \"app/stand/stand.service\";\r\nimport { StandHeaderComponent } from \"app/stand/components/header/stand-header.component\";\r\nimport { StandFreeComponent } from \"./stand-free.component\";\r\nimport { StandFooterComponent } from \"app/stand/components/footer/stand-footer.component\";\r\nimport { InfoBarMobileComponent } from \"app/stand/components/info-bar/info-bar-mobile/info-bar-mobile.component\";\r\nimport { StandLayoutEnum } from \"app/stand/stand.enums\";\r\n\r\nconst pagesData = {\r\n isCacheable: true,\r\n breadcrumb: $localize`Online Stand`,\r\n layout: StandLayoutEnum.standFree\r\n}\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: StandFooterComponent,\r\n outlet: 'footerOutlet',\r\n data: {\r\n shouldReuseOnSlide: false\r\n },\r\n },\r\n {\r\n path: '',\r\n component: InfoBarMobileComponent,\r\n outlet: 'mobileinfoBarOutlet',\r\n data: {\r\n shouldReuseOnSlide: false\r\n },\r\n },\r\n {\r\n path: ':companySlug',\r\n component: StandFreeComponent,\r\n data: {\r\n breadcrumb: 'subhall',\r\n shouldReuseOnSlide: false\r\n },\r\n resolve: {\r\n resolvedData: StandService\r\n },\r\n children: [{\r\n path: '',\r\n component: StandHeaderComponent,\r\n outlet: 'topOutlet',\r\n data: {\r\n shouldReuseOnSlide: false\r\n },\r\n },\r\n {\r\n path: '',\r\n pathMatch: 'full',\r\n loadComponent: () => import('./dashboard-free/dashboard-free.component').then(c => c.DashboardFreeComponent),\r\n data: pagesData\r\n },\r\n {\r\n path: 'news',\r\n pathMatch: 'full',\r\n loadComponent: () => import('./get-business-access/get-business-access.component').then(c => c.GetBusinessAccessComponent),\r\n data: pagesData\r\n },\r\n {\r\n path: 'products',\r\n pathMatch: 'full',\r\n loadComponent: () => import('./get-business-access/get-business-access.component').then(c => c.GetBusinessAccessComponent),\r\n data: pagesData\r\n }]\r\n }\r\n]\r\n@NgModule({\r\n imports: [\r\n RouterModule.forChild(routes)\r\n ],\r\n exports: [RouterModule]\r\n})\r\n export class StandFreeRoutingModule {\r\n }\r\n","import { StandFooterModule } from './../stand/components/footer/stand-footer.module';\r\nimport { NgModule } from '@angular/core';\r\nimport { StandFreeComponent } from './stand-free.component';\r\nimport { StandFreeRoutingModule } from './stand-free-routing.module';\r\n\r\n@NgModule({\r\n imports: [\r\n StandFreeRoutingModule,\r\n StandFooterModule,\r\n StandFreeComponent\r\n]\r\n})\r\nexport class StandFreeModule { }\r\n"]}