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EAAW,eAAY,GAFpD,IAIjBhH,SAAQ,SAAAoH,GACLA,EAASH,MAAMjH,SAAQ,SAAAqH,GACnBN,EAAeO,UAAUF,EAASJ,UAAWK,EACjD,GACJ,GACR,GAZkB,UAZrB,IAAAvK,UAAS,CACNC,QAAS,CACL,KACAqG,GACAK,GACAuC,GACAU,GACAF,GACAI,IAEJC,gBAAiBA,MAERU,GAAb,GCpCA,2BAcA,QAXkB,EAAAC,SAAd,WAKI,OAJKlX,KAAKmX,YACNnX,KAAKmX,UAAY,IAAIC,GAGlBpX,KAAKmX,SAChB,EAEO,YAAAE,KAAP,YACI,SAAyBC,gBAAgBL,IAAWM,OAAM,SAAA/R,GAAS,OAAAgS,QAAQhS,MAAMA,EAAd,GACvE,EACJ,EAdA,ICSI,IAAAiS,kBAGJL,GAAyBF,WAAWG","sources":["webpack:///./scripts/apps-module/app/shared-library/enums/search-status.enum.ts","webpack:///./scripts/apps-module/app/shared-library/mixins/destroyable.mixin.ts","webpack:///./scripts/core-library/mixins/base-destroyable.mixin.ts","webpack:///./scripts/apps-module/app/shared-library/mixins/lock.mixin.ts","webpack:///./scripts/apps-module/app/shared-library/services/configuration/errors/configuration.error.ts","webpack:///./scripts/apps-module/app/shared-library/services/configuration/configuration.service.ts","webpack:///./scripts/apps-module/app/shared-library/services/environment/browser-window.service.ts","webpack:///./scripts/apps-module/app/shared-library/services/environment/query-string-serialization.service.ts","webpack:///./scripts/apps-module/app/shared-library/utils/common.utils.ts","webpack:///./scripts/apps-module/app/shared-library/utils/numeric.utils.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/services/form-search-parameters.service.ts","webpack:///./scripts/apps-module/app/shared-library/services/api/api-request-dispatcher.service.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/services/search.service.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/services/query-search-parameters.service.ts","webpack:///./scripts/apps-module/app/shared-library/forms/base-observable.form.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/forms/search.form.ts","webpack:///./scripts/apps-module/app/shared-library/decorators/pending.decorator.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/venues-search.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/components/date-filter/date-filter-values.enum.ts","webpack:///./scripts/apps-module/app/shared-library/shared-library.module.ts","webpack:///./scripts/apps-module/app/common-components/pagination/pagination.component.ts","webpack:///./scripts/apps-module/app/shared-library/form-controls/base-form-control.component.ts","webpack:///./scripts/apps-module/app/common-components/search-bar/search-bar.component.ts","webpack:///./scripts/apps-module/app/common-components/dropdown-filter/dropdown-filter.component.ts","webpack:///./scripts/apps-module/app/common-components/date-picker/date-picker.component.ts","webpack:///./scripts/apps-module/app/common-components/spinner/spinner.component.ts","webpack:///./scripts/apps-module/app/common-components/common-components.module.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/components/capacity-filter/capacity-filter.component.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/components/facilities-filter/checkbox/checkbox.component.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/components/facilities-filter/facilities-filter.component.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/components/search-results/result-item/result-item.component.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/components/search-results/search-results.component.ts","webpack:///./scripts/apps-module/app/entry-modules/venues-search/venues-search.module.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/services/form-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/services/search.service.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/services/query-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/forms/search.form.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/vacancies-search.component.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/components/search-results/search-results.component.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/components/search-results/result-item/result-item.component.ts","webpack:///./scripts/apps-module/app/entry-modules/vacancies-search/vacancies-search.module.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/components/search-results/search-results.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/components/search-results/result-item/result-item.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/services/form-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/services/search.service.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/services/query-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/forms/search.form.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/content-search.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/components/search-message/search-message.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/components/date-filter/date-filter.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/components/search-filter/checkbox/checkbox.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/components/search-filter/search-filter.component.ts","webpack:///./scripts/apps-module/app/entry-modules/content-search/content-search.module.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/services/form-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/services/search.service.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/services/query-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/forms/search.form.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/assistants-profile-search.component.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/components/search-results/search-results.component.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/components/search-results/result-item/result-item.component.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/components/boolean-dropdown-filter/boolean-dropdown-filter.component.ts","webpack:///./scripts/apps-module/app/entry-modules/assistants-profile-search/assistants-profile-search.module.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/services/form-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/services/search.service.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/services/query-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/forms/search.form.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/event-search.component.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/components/search-results/search-results.component.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/components/search-results/result-item/result-item.component.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/components/search-message/search-message.component.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/components/date-filter/date-filter.component.ts","webpack:///./scripts/apps-module/app/entry-modules/event-search/event-search.module.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/services/form-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/services/search.service.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/services/query-search-parameters.service.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/forms/search.form.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/news-search.component.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/components/search-results/result-item/result-item.component.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/components/search-results/search-results.component.ts","webpack:///./scripts/apps-module/app/entry-modules/news-search/news-search.module.ts","webpack:///./scripts/apps-module/app/app.module.ts","webpack:///./scripts/apps-module/app/shared-library/services/environment/application-loader.service.ts","webpack:///./scripts/apps-module/app.ts"],"sourcesContent":["export enum SearchStatus {\r\n Error = 1,\r\n Loading = 2,\r\n Success = 3\r\n}\r\n","import { EventEmitter, OnDestroy } from \"@angular/core\";\r\nimport { Subject, Subscription } from \"rxjs\";\r\nimport { BaseDestroyableMixin, IDestroyable } from \"core-library/mixins/base-destroyable.mixin\";\r\nimport { Constructor } from \"core-library/types/constructor\";\r\n\r\nexport const DestroyableMixin = >(\r\n BaseClass: TBaseClass\r\n): TBaseClass & Constructor => {\r\n\r\n return class DestroyableExtension extends BaseDestroyableMixin(BaseClass) implements OnDestroy {\r\n\r\n public ngOnDestroy(): void {\r\n this.destroy();\r\n }\r\n\r\n protected destroyMember(value: object): void {\r\n if (value instanceof Subscription && !value.closed) {\r\n value.unsubscribe();\r\n return;\r\n }\r\n\r\n if (value instanceof EventEmitter) {\r\n return;\r\n }\r\n\r\n if (value instanceof Subject) {\r\n value.complete();\r\n return;\r\n }\r\n }\r\n };\r\n};\r\n","import { Constructor } from \"core-library/types/constructor\";\r\nimport { get } from \"lodash\";\r\nimport each from \"lodash/each\";\r\nimport {Subject} from \"rxjs\";\r\n\r\nexport interface IDestroyable {\r\n onDestroy: Subject;\r\n destroy(): void;\r\n}\r\n\r\nexport const BaseDestroyableMixin = >(\r\n BaseClass: TBaseClass\r\n): TBaseClass & Constructor => {\r\n\r\n return class BaseDestroyableExtension extends BaseClass implements IDestroyable {\r\n public onDestroy: Subject = new Subject();\r\n\r\n public destroy(): void {\r\n this.onDestroy.next();\r\n\r\n const properties = Object.getOwnPropertyDescriptors(this);\r\n\r\n each(properties, (propDescriptor: PropertyDescriptor, key: string) => {\r\n const value = get(this, key) as object;\r\n this.destroyMember(value);\r\n });\r\n }\r\n\r\n // It's necessary to override it because abstract mixin allow us do not implement abstract members in typescript.\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n protected destroyMember(value: object): void {\r\n throw new Error(\"Method not implemented.\");\r\n }\r\n };\r\n};\r\n","import { Constructor } from \"core-library/types/constructor\";\r\n\r\nexport interface ILockable {\r\n isLocked: boolean;\r\n lock(): void;\r\n unlock(): void;\r\n}\r\n\r\nexport const LockMixin = >(\r\n BaseClass: TBaseClass\r\n): TBaseClass & Constructor => {\r\n\r\n return class LockableExtension extends BaseClass implements ILockable {\r\n private _isLocked: boolean = false;\r\n\r\n public get isLocked(): boolean {\r\n return this._isLocked;\r\n }\r\n\r\n public lock(): void {\r\n this._isLocked = true;\r\n }\r\n\r\n public unlock(): void {\r\n this._isLocked = false;\r\n }\r\n };\r\n};\r\n","export class ConfigurationError extends Error {\r\n public constructor(message: string) {\r\n super(message);\r\n this.name = \"Configuration Error\";\r\n }\r\n}\r\n","import {ElementRef, Injectable} from \"@angular/core\";\r\nimport { ConfigurationError } from \"apps-module/app/shared-library/services/configuration/errors/configuration.error\";\r\nimport _cloneDeep from \"lodash/cloneDeep\";\r\nimport _unescape from \"lodash/unescape\";\r\n\r\n@Injectable()\r\nexport class ConfigurationService {\r\n private readonly DEFAULT_DATA_ATTRIBUTE_NAME = \"config\";\r\n private _config: TConfig = null;\r\n\r\n public getConfiguration(): TConfig {\r\n return _cloneDeep(this._config);\r\n }\r\n\r\n public initialize(domElement: ElementRef, domAttribute?: string): void {\r\n domAttribute = domAttribute || this.DEFAULT_DATA_ATTRIBUTE_NAME;\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\r\n const json = domElement.nativeElement.dataset[domAttribute] as string;\r\n\r\n if (!json) {\r\n throw new ConfigurationError(`Mandatory 'data-${domAttribute}' attribute is not set or empty.`);\r\n }\r\n\r\n this._config = JSON.parse(_unescape(json)) ;\r\n }\r\n}\r\n","import {Injectable} from \"@angular/core\";\r\n\r\n@Injectable({\r\n providedIn: \"root\"\r\n})\r\nexport class BrowserWindowService {\r\n private _initialUrl: string;\r\n\r\n public constructor() {\r\n window.onpopstate = (): void => {\r\n this.reloadPage();\r\n };\r\n }\r\n\r\n public getQueryString(): string {\r\n const queryString: string = window.location.search;\r\n\r\n if (queryString && (queryString.length > 1)) {\r\n return queryString.slice(1);\r\n }\r\n\r\n return null;\r\n }\r\n\r\n public setQueryString(queryString: string): void {\r\n const currentUrl = window.location;\r\n const updatedUrl = [currentUrl.protocol, \"//\", currentUrl.host, currentUrl.pathname, queryString.length ? \"?\" : \"\", queryString].join(\"\");\r\n\r\n if (currentUrl.href !== updatedUrl) {\r\n if (!this._initialUrl) {\r\n this._initialUrl = updatedUrl;\r\n window.history.replaceState({}, \"\", updatedUrl);\r\n } else {\r\n window.history.pushState({}, \"\", updatedUrl);\r\n }\r\n }\r\n }\r\n\r\n public reloadPage(): void {\r\n window.location.reload();\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { QueryStringObject } from \"apps-module/app/shared-library/types/query-string-object\";\r\n\r\n@Injectable({\r\n providedIn: \"root\"\r\n})\r\nexport class QueryStringSerializationService {\r\n private static get PROPERTY_NAMES_DELIMITER(): string {\r\n return \".\";\r\n }\r\n\r\n public serialize(data: object): string {\r\n return this.serializeInternal(data);\r\n }\r\n\r\n private serializeInternal(data: object, prefix: string = \"\"): string {\r\n if (!Object.keys(data).length) {\r\n return \"\";\r\n }\r\n\r\n const queryParams: Array = [];\r\n for (const propertyName of Object.keys(data)) {\r\n const propertyPath = prefix ? `${prefix}${propertyName}` : propertyName;\r\n const propertyValue = data[propertyName] as string | number | boolean;\r\n\r\n const queryParam = ((propertyValue !== null) && (typeof propertyValue === \"object\"))\r\n ? this.serializeInternal(propertyValue, `${propertyPath}${QueryStringSerializationService.PROPERTY_NAMES_DELIMITER}`)\r\n : `${encodeURIComponent(propertyPath)}=${encodeURIComponent(propertyValue || \"\")}`;\r\n\r\n queryParams.push(queryParam);\r\n }\r\n\r\n return queryParams.filter(queryParam => queryParam.split(\"=\")[1]).join(\"&\");\r\n }\r\n\r\n public deserialize(queryString: string): QueryStringObject {\r\n try {\r\n const resultObject = {};\r\n\r\n const spaceFormattedQueryString = queryString.replace(new RegExp(\"\\\\+\", \"g\"), \" \");\r\n\r\n for (const queryParam of spaceFormattedQueryString.split(\"&\")) {\r\n const pair = decodeURIComponent(queryParam).split(\"=\");\r\n\r\n const propertyPath = pair[0].split(QueryStringSerializationService.PROPERTY_NAMES_DELIMITER);\r\n const propertyValue = pair[1];\r\n\r\n if (propertyValue) {\r\n this.setPropertyValue(resultObject, propertyPath, propertyValue);\r\n }\r\n }\r\n\r\n return resultObject;\r\n } catch (error) {\r\n return {};\r\n }\r\n }\r\n\r\n private setPropertyValue(resultObject: object, propertyPath: Array, propertyValue: string): void {\r\n if (!propertyPath.length) {\r\n return;\r\n }\r\n\r\n const propertyAlias = propertyPath[0];\r\n const isPlainProperty = propertyPath.length === 1;\r\n\r\n if (isPlainProperty) {\r\n resultObject[propertyAlias] = propertyValue;\r\n return;\r\n }\r\n\r\n let nestedObject: object = null;\r\n\r\n if (resultObject.hasOwnProperty(propertyAlias)) {\r\n nestedObject = resultObject[propertyAlias] as object;\r\n } else {\r\n const isArrayProperty = !isNaN(parseInt(propertyPath[1], 10));\r\n nestedObject = isArrayProperty ? [] : {};\r\n resultObject[propertyAlias] = nestedObject;\r\n }\r\n\r\n this.setPropertyValue(nestedObject, propertyPath.slice(1), propertyValue);\r\n }\r\n}\r\n","import { v4 as uuid_v4 } from \"uuid\";\r\n\r\nexport const nameof = (name: keyof T): string => name as string;\r\n\r\nexport const shortKey = (): string => {\r\n // crypto.randomUUID() requires a secure context. The browser won't allow you to use it outside HTTPS when not accessing via localhost.\r\n // return crypto.randomUUID().substring(0, 6);\r\n return String(uuid_v4()).substring(0, 6);\r\n};\r\n","export class NumericUtils {\r\n public static parse(value: string, defaultValue: number): number {\r\n return !isNaN(+value) ? +value : defaultValue;\r\n }\r\n\r\n public static parseMany(values: Array, defaultValue: number): Array {\r\n if (!values) {\r\n return [];\r\n }\r\n\r\n const result = values.map(x => NumericUtils.parse(x, defaultValue));\r\n return result;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/venues-search/models/search-configuration.model\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/venues-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/venues-search/models/query-search-parameters.model\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { NumericUtils } from \"apps-module/app/shared-library/utils/numeric.utils\";\r\n\r\n@Injectable()\r\nexport class FormSearchParametersService {\r\n\r\n public constructor(\r\n private _serializationService: QueryStringSerializationService\r\n ) {\r\n }\r\n\r\n public create(queryString: string, configuration: SearchConfigurationModel): FormSearchParametersModel {\r\n const rawValues = this._serializationService.deserialize(queryString);\r\n\r\n const formParameters = {\r\n pageId: configuration.pageId,\r\n pageNumber: NumericUtils.parse(rawValues[nameof(\"pageNumber\")] as string, 1),\r\n searchText: rawValues[nameof(\"searchText\")] as string || \"\",\r\n location: rawValues[nameof(\"location\")] as string || \"\",\r\n minCapacity: NumericUtils.parse(rawValues[nameof(\"minCapacity\")] as string, configuration.minCapacity),\r\n maxCapacity: NumericUtils.parse(rawValues[nameof(\"maxCapacity\")] as string, configuration.maxCapacity),\r\n facilities: rawValues[nameof(\"facilities\")] as Array || []\r\n } as FormSearchParametersModel;\r\n\r\n return formParameters;\r\n }\r\n}\r\n","import { HttpClient } from \"@angular/common/http\";\r\nimport { Injectable } from \"@angular/core\";\r\n\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable({\r\n providedIn: \"root\"\r\n})\r\nexport class ApiRequestDispatcherService {\r\n public constructor(\r\n private _http: HttpClient\r\n ) {\r\n }\r\n\r\n public get(url: string, params?: {\r\n [param: string]: string | number | boolean | ReadonlyArray;\r\n }): Observable {\r\n return this._http.get(url, { params: params });\r\n }\r\n\r\n public post(url: string, body: any): Observable {\r\n return this._http.post(url, body);\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/venues-search/models/form-search-parameters.model\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/venues-search/models/search-result.model\";\r\nimport { ApiRequestDispatcherService } from \"apps-module/app/shared-library/services/api/api-request-dispatcher.service\";\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class SearchService {\r\n public constructor(\r\n private _requestDispatcher: ApiRequestDispatcherService\r\n ) {\r\n }\r\n\r\n public search(searchParams: FormSearchParametersModel): Observable {\r\n return this._requestDispatcher.get(\"/api/venues-search/results\", {...searchParams});\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/venues-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/venues-search/models/query-search-parameters.model\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\n\r\n@Injectable()\r\nexport class QuerySearchParametersService {\r\n\r\n public constructor(\r\n private readonly _serializationService: QueryStringSerializationService,\r\n private readonly _browserWindowService: BrowserWindowService\r\n ) {\r\n }\r\n\r\n public set(searchParameters: FormSearchParametersModel): void {\r\n const queryParams = {\r\n pageNumber: searchParameters.pageNumber,\r\n maxCapacity: searchParameters.maxCapacity,\r\n minCapacity: searchParameters.minCapacity,\r\n facilities: searchParameters.facilities,\r\n location: searchParameters.location,\r\n searchText: searchParameters.searchText\r\n } as QuerySearchParametersModel;\r\n\r\n const queryString = this._serializationService.serialize(queryParams);\r\n\r\n this._browserWindowService.setQueryString(queryString);\r\n }\r\n}\r\n","import { AbstractControl, FormGroup } from \"@angular/forms\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport _cloneDeep from \"lodash/cloneDeep\";\r\nimport { Observable, Subject, takeUntil } from \"rxjs\";\r\n\r\nexport abstract class BaseObservableForm extends DestroyableMixin(EmptyInstance) {\r\n private _onFormSubmitted = new Subject();\r\n\r\n public get onFormSubmitted(): Observable {\r\n return this._onFormSubmitted.asObservable();\r\n }\r\n\r\n protected constructor(\r\n protected formInstance: FormGroup,\r\n protected initialFormState: TFormModel\r\n ) {\r\n super();\r\n\r\n // NOTE: sync form state & external params update on submit (e.g. search by text should reset page number, click on the page number should submit the form with the latest submitted search text, not current, etc.)\r\n this.onFormSubmitted\r\n .pipe(takeUntil(this.onDestroy))\r\n .subscribe(model => {\r\n this.formInstance.patchValue(model, { emitEvent: false });\r\n this.initialFormState = model;\r\n });\r\n }\r\n\r\n public getFormControl(alias: string): AbstractControl {\r\n return this.formInstance.get(alias);\r\n }\r\n\r\n public submit(partialFormModel: object = {}): void {\r\n if (this.isFormValid()) {\r\n this._onFormSubmitted.next(this.getFormModel(partialFormModel));\r\n }\r\n }\r\n\r\n public getValue(): TFormModel {\r\n return this.getFormModel();\r\n }\r\n\r\n protected getFormModel(partialFormModel: object = {}): TFormModel {\r\n const model = _cloneDeep(this.formInstance.value) as TFormModel;\r\n return _cloneDeep({ ...model, ...partialFormModel });\r\n }\r\n\r\n protected isFormValid(): boolean {\r\n return this.formInstance.valid;\r\n }\r\n}\r\n","import { BaseObservableForm } from \"apps-module/app/shared-library/forms/base-observable.form\";\r\nimport { FormControl, FormGroup } from \"@angular/forms\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport _merge from \"lodash/merge\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/venues-search/models/form-search-parameters.model\";\r\n\r\nexport class SearchForm extends BaseObservableForm {\r\n public static createForm(initialSearchParams: FormSearchParametersModel): SearchForm {\r\n const formGroup = new FormGroup({\r\n pageNumber: new FormControl(initialSearchParams.pageNumber),\r\n pageId: new FormControl(initialSearchParams.pageId),\r\n searchText: new FormControl(initialSearchParams.searchText),\r\n location: new FormControl(initialSearchParams.location),\r\n facilities: new FormControl>(initialSearchParams.facilities),\r\n capacity: new FormControl>([initialSearchParams.minCapacity, initialSearchParams.maxCapacity])\r\n });\r\n\r\n return new SearchForm(formGroup, initialSearchParams);\r\n }\r\n\r\n public get nativeForm(): FormGroup { return this.formInstance; }\r\n\r\n public get pageNumber(): FormControl { return this.formInstance.get(nameof(\"pageNumber\")) as FormControl; }\r\n public get pageId(): FormControl { return this.formInstance.get(nameof(\"pageId\")) as FormControl; }\r\n public get searchText(): FormControl { return this.formInstance.get(nameof(\"searchText\")) as FormControl; }\r\n public get location(): FormControl { return this.formInstance.get(nameof(\"location\")) as FormControl; }\r\n public get facilities(): FormControl> { return this.formInstance.get(nameof(\"facilities\")) as FormControl>; }\r\n public get capacity(): FormControl> { return this.formInstance.get(\"capacity\") as FormControl>; }\r\n\r\n private constructor(\r\n formInstance: FormGroup,\r\n initialSearchParams: FormSearchParametersModel\r\n ) {\r\n super(formInstance, initialSearchParams);\r\n }\r\n\r\n public searchByPageNumber(): void {\r\n this.submit({\r\n searchText: this.initialFormState.searchText,\r\n location: this.initialFormState.location,\r\n facilities: this.initialFormState.facilities,\r\n minCapacity: this.initialFormState.minCapacity,\r\n maxCapacity: this.initialFormState.maxCapacity\r\n });\r\n }\r\n\r\n public searchByFilters(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n searchText: this.initialFormState.searchText,\r\n minCapacity: this.capacity.value[0],\r\n maxCapacity: this.capacity.value[1]\r\n });\r\n }\r\n\r\n public searchByText(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n location: this.initialFormState.location,\r\n facilities: this.initialFormState.facilities,\r\n minCapacity: this.initialFormState.minCapacity,\r\n maxCapacity: this.initialFormState.maxCapacity\r\n });\r\n }\r\n}\r\n","/* eslint-disable @typescript-eslint/unbound-method */\r\nimport { ILockable } from \"apps-module/app/shared-library/mixins/lock.mixin\";\r\nimport \"reflect-metadata\";\r\nimport {Subscription} from \"rxjs\";\r\n\r\nexport const Pending = (target: ILockable, propertyKey: string | symbol): any => {\r\n const propertyType = Reflect.getMetadata(\"design:type\", target, propertyKey);\r\n\r\n if (propertyType !== Subscription) {\r\n throw new Error(\"@Pending can be applied to Subscription type only\");\r\n }\r\n\r\n const descriptor = Object.getOwnPropertyDescriptor(target, propertyKey) || { enumerable: true, configurable: true };\r\n\r\n let value: Subscription;\r\n\r\n const originalGet = descriptor.get || ((): any => value);\r\n const originalSet = descriptor.set || ((val: Subscription): void => { value = val; });\r\n\r\n descriptor.get = originalGet;\r\n\r\n descriptor.set = function setProperty(val: Subscription): void {\r\n const self = this as ILockable;\r\n\r\n originalSet(val);\r\n value = val;\r\n self.lock();\r\n value.add(() => {\r\n self.unlock();\r\n });\r\n };\r\n\r\n return descriptor;\r\n};\r\n","import { Component, ElementRef, OnInit } from \"@angular/core\";\r\nimport { filter, merge, of, Subscription, takeUntil, take } from \"rxjs\";\r\nimport _cloneDeep from \"lodash/cloneDeep\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { LockMixin } from \"apps-module/app/shared-library/mixins/lock.mixin\";\r\nimport { ConfigurationService } from \"apps-module/app/shared-library/services/configuration/configuration.service\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/venues-search/models/search-configuration.model\";\r\nimport { FormSearchParametersService } from \"apps-module/app/entry-modules/venues-search/services/form-search-parameters.service\";\r\nimport { SearchService } from \"apps-module/app/entry-modules/venues-search/services/search.service\";\r\nimport { QuerySearchParametersService } from \"apps-module/app/entry-modules/venues-search/services/query-search-parameters.service\";\r\nimport { SearchForm } from \"apps-module/app/entry-modules/venues-search/forms/search.form\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/venues-search/models/form-search-parameters.model\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/venues-search/models/search-result-item.model\";\r\nimport { Pending } from \"apps-module/app/shared-library/decorators/pending.decorator\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/venues-search/models/search-result.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: VenuesSearchComponent.SELECTOR,\r\n templateUrl: \"./venues-search.component.html\",\r\n providers: [ConfigurationService, FormSearchParametersService, SearchService, QuerySearchParametersService]\r\n})\r\nexport class VenuesSearchComponent extends DestroyableMixin(LockMixin(EmptyInstance)) implements OnInit {\r\n\r\n public static SELECTOR: string = \"[pcg-ng-venues-search]\";\r\n\r\n // TODO: is this decorator necessary?\r\n @Pending\r\n private _onSearch: Subscription;\r\n\r\n public configuration: SearchConfigurationModel;\r\n public searchForm: SearchForm;\r\n public results: Array = [];\r\n public totalPages: number = 1;\r\n public totalCount: number = 0;\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n\r\n public constructor(\r\n private _domElement: ElementRef,\r\n private _browserWindowService: BrowserWindowService,\r\n private _configurationService: ConfigurationService,\r\n private _searchParametersFactory: FormSearchParametersService,\r\n private _searchService: SearchService,\r\n private _queryStringSetterService: QuerySearchParametersService\r\n ) { super(); }\r\n\r\n public ngOnInit(): void {\r\n this._configurationService.initialize(this._domElement);\r\n\r\n this.configuration = this._configurationService.getConfiguration();\r\n\r\n const queryString = this._browserWindowService.getQueryString();\r\n const searchParameters = this._searchParametersFactory.create(queryString, this.configuration);\r\n this.searchForm = SearchForm.createForm(searchParameters);\r\n\r\n merge(of(searchParameters), this.searchForm.onFormSubmitted)\r\n .pipe(\r\n filter(() => !this.isLocked),\r\n takeUntil(this.onDestroy)\r\n )\r\n .subscribe(searchParams => this.invokeSearch(searchParams));\r\n }\r\n\r\n private invokeSearch(formSearchParameters: FormSearchParametersModel): void {\r\n this.searchStatus = SearchStatus.Loading;\r\n this._queryStringSetterService.set(formSearchParameters);\r\n\r\n this._onSearch = this._searchService.search(formSearchParameters)\r\n .pipe(take(1))\r\n .subscribe({\r\n next: (response: SearchResultModel) => {\r\n const searchResult = {...response.results};\r\n\r\n this.totalCount = searchResult.totalItems ?? 0;\r\n this.totalPages = searchResult.totalPages ?? 1;\r\n this.results = [...searchResult.pageItems];\r\n this.searchStatus = SearchStatus.Success;\r\n },\r\n error: () => this.searchStatus = SearchStatus.Error\r\n });\r\n }\r\n}\r\n","export enum DateFilterValues {\r\n All = 1,\r\n ThisMonth = 2,\r\n LastMonth = 3,\r\n Last12Month = 4,\r\n Custom = 5\r\n}\r\n","import { CommonModule } from \"@angular/common\";\r\nimport { HttpClientModule } from \"@angular/common/http\";\r\nimport { NgModule } from \"@angular/core\";\r\nimport { ReactiveFormsModule } from \"@angular/forms\";\r\n\r\n@NgModule({\r\n imports: [\r\n HttpClientModule,\r\n CommonModule\r\n ],\r\n declarations: [\r\n ],\r\n exports: [\r\n ReactiveFormsModule,\r\n CommonModule\r\n ]\r\n})\r\nexport class SharedLibraryModule {\r\n}\r\n","import { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-pagination]\",\r\n templateUrl: \"./pagination.component.html\",\r\n host: {\r\n \"area-label\": \"Pagination bar\"\r\n }\r\n})\r\nexport class PaginationComponent {\r\n\r\n @Input()\r\n public control: FormControl = new FormControl(1);\r\n\r\n public readonly GAP: number = 3;\r\n\r\n public totalPages: number = 1;\r\n\r\n @Input(\"totalPages\")\r\n public set pagingSetter(value: number) {\r\n if (value === undefined || value === null) {\r\n return;\r\n }\r\n\r\n this.totalPages = value;\r\n }\r\n\r\n @Output()\r\n public onPageClick = new EventEmitter();\r\n\r\n public setPage(pageNumber: number): void {\r\n this.control.setValue(pageNumber);\r\n this.onPageClick.emit();\r\n }\r\n\r\n public getMiddleNumbers(start: number, end: number): Array {\r\n start = start <= 0 ? 1 : start;\r\n const length = end > this.totalPages ? this.totalPages : end;\r\n const numbers = new Array();\r\n for (let pageNumber = start; pageNumber <= length; pageNumber++) {\r\n numbers.push(pageNumber);\r\n }\r\n\r\n return numbers;\r\n }\r\n\r\n public getFullNumbers(): Array {\r\n const numbers = new Array();\r\n for (let pageNumber = 1; pageNumber <= this.totalPages; pageNumber++) {\r\n numbers.push(pageNumber);\r\n }\r\n\r\n return numbers;\r\n }\r\n}\r\n","import {ControlValueAccessor} from \"@angular/forms\";\r\nimport _cloneDeep from \"lodash/cloneDeep\";\r\n\r\nexport class BaseFormControlComponent implements ControlValueAccessor {\r\n private _value: TValueType;\r\n\r\n protected get value(): TValueType {\r\n return _cloneDeep(this._value);\r\n }\r\n\r\n private _disabled: boolean = false;\r\n\r\n protected get disabled(): boolean {\r\n return this._disabled;\r\n }\r\n\r\n private _onChange: any = () => {};\r\n\r\n private _onTouched: any = () => {};\r\n\r\n /**\r\n * Registers a callback function that is called when the control's value changes in the UI.\r\n */\r\n public registerOnChange(fn: () => void): void {\r\n this._onChange = fn;\r\n }\r\n\r\n /**\r\n * Registers a callback function that is called by the forms API on initialization to update the form model on blur.\r\n */\r\n public registerOnTouched(fn: () => void): void {\r\n this._onTouched = fn;\r\n }\r\n\r\n /**\r\n * Function that is called by the forms API when the control status changes to or from \"DISABLED\".\r\n */\r\n public setDisabledState(disabled: boolean): void {\r\n this._disabled = disabled;\r\n }\r\n\r\n /**\r\n * Writes a new value to the element.\r\n */\r\n public writeValue(value: any): void {\r\n this._value = value;\r\n }\r\n\r\n protected writeNewValue(value: TValueType): void {\r\n if (value !== undefined) {\r\n this.writeValue(value);\r\n this._onChange(value);\r\n }\r\n }\r\n}\r\n","import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild, forwardRef } from \"@angular/core\";\r\nimport { FormControl, NG_VALUE_ACCESSOR } from \"@angular/forms\";\r\nimport { BaseFormControlComponent } from \"apps-module/app/shared-library/form-controls/base-form-control.component\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { ApiRequestDispatcherService } from \"apps-module/app/shared-library/services/api/api-request-dispatcher.service\";\r\nimport { shortKey } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { SmartSuggestService } from \"core-library/components/smart-suggest/smart-suggest.service\";\r\nimport { SearchResponseModel } from \"core-library/components/smart-suggest/suggest-response.model\";\r\nimport { debounceTime, map, takeUntil } from \"rxjs\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-bar]\",\r\n templateUrl: \"./search-bar.component.html\",\r\n providers: [\r\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SearchBarComponent), multi: true }\r\n ]\r\n})\r\nexport class SearchBarComponent extends DestroyableMixin(BaseFormControlComponent) implements OnInit {\r\n\r\n public id: string = null;\r\n public suggestionsHided: boolean = true;\r\n public searchTextControl: FormControl = new FormControl(\"\");\r\n\r\n @ViewChild(\"suggestionsContainer\")\r\n public suggestionsContainer: ElementRef;\r\n\r\n @Input()\r\n public useSuggestions: boolean = false;\r\n\r\n @Input()\r\n public apiUrl: string = null;\r\n\r\n @Input()\r\n public searchPageUrl: string = null;\r\n\r\n @Input()\r\n public homePageId: string = null;\r\n\r\n @Output()\r\n public onSubmit = new EventEmitter();\r\n\r\n public constructor(private readonly api: ApiRequestDispatcherService) {\r\n super();\r\n\r\n this.searchTextControl.valueChanges\r\n .pipe(\r\n map((value: string) => this.writeNewValue(value)),\r\n debounceTime(700),\r\n takeUntil(this.onDestroy)\r\n )\r\n .subscribe(() => this.setSuggestions());\r\n }\r\n\r\n public onFocusIn(): void {\r\n this.setSuggestions();\r\n }\r\n\r\n public onFocusOut(): void {\r\n setTimeout(() => this.clearSuggestions(), 150);\r\n }\r\n\r\n public writeValue(value: any): void {\r\n super.writeValue(value);\r\n this.searchTextControl.setValue(value, { emitEvent: false });\r\n }\r\n\r\n private setSuggestions(): void {\r\n const searchText = this.value;\r\n\r\n if (searchText.length <= 2) {\r\n return;\r\n }\r\n\r\n if (!this.suggestionsHided) {\r\n return;\r\n }\r\n\r\n this.suggestionsHided = false;\r\n\r\n this.api.get(`${this.apiUrl}?&homePageId=${this.homePageId}&searchText=${searchText}`)\r\n .subscribe(response => {\r\n this.clearSuggestions();\r\n\r\n if (response.recommendations) {\r\n SmartSuggestService.getSuggestionElements(response.recommendations, \"Recommended Links\")\r\n .forEach((element: string) => this.suggestionsContainer.nativeElement.innerHTML += element);\r\n }\r\n\r\n // SmartSuggestService.getSuggestionElements(response.suggestions.filter(x => x.isRecommended), \"Recommended Links\")\r\n // .forEach((element: string) => this.suggestionsContainer.nativeElement.innerHTML += element);\r\n // SmartSuggestService.getSuggestionElements(response.suggestions.filter(x => !x.isRecommended), \"Content / Articles\")\r\n // .forEach((element: string) => this.suggestionsContainer.nativeElement.innerHTML += element);\r\n\r\n if (response.suggestions) {\r\n SmartSuggestService.getSuggestionElements(response.suggestions, \"Content / Articles\")\r\n .forEach((element: string) => this.suggestionsContainer.nativeElement.innerHTML += element);\r\n }\r\n\r\n this.suggestionsContainer.nativeElement.innerHTML += SmartSuggestService.getShowMoreElement(response.showMoreCount, searchText, this.searchPageUrl);\r\n });\r\n }\r\n\r\n private clearSuggestions(): void {\r\n this.suggestionsContainer.nativeElement.innerHTML = \"\";\r\n this.suggestionsHided = true;\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.id = `searchText-${shortKey()}`;\r\n }\r\n\r\n public submit(): void {\r\n this.onSubmit.emit();\r\n this.clearSuggestions();\r\n }\r\n\r\n public onInputClick(): void {\r\n this.setSuggestions();\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { shortKey } from \"apps-module/app/shared-library/utils/common.utils\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-dropdown-filter]\",\r\n templateUrl: \"./dropdown-filter.component.html\"\r\n})\r\nexport class DropdownFilterComponent implements OnInit {\r\n\r\n public control: FormControl = null;\r\n @Input(\"control\")\r\n public set controlSetter(value: FormControl) {\r\n this.control = value;\r\n }\r\n\r\n public id: string = null;\r\n\r\n public ngOnInit(): void {\r\n this.id = shortKey();\r\n }\r\n\r\n @Input()\r\n public values: Array = [];\r\n\r\n @Input()\r\n public label: string = null;\r\n\r\n @Output()\r\n public onSubmit = new EventEmitter();\r\n\r\n public submit(): void {\r\n this.onSubmit.emit();\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { NgbDateStruct, NgbInputDatepicker } from \"@ng-bootstrap/ng-bootstrap\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { shortKey } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { NumericUtils } from \"apps-module/app/shared-library/utils/numeric.utils\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { takeUntil } from \"rxjs\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-date-picker]\",\r\n templateUrl: \"./date-picker.component.html\",\r\n host: {\r\n \"class\": \"pcg-form-group\"\r\n }\r\n})\r\nexport class DatePickerComponent extends DestroyableMixin(EmptyInstance) implements OnInit {\r\n @ViewChild(\"picker\", { read: NgbInputDatepicker, static: false })\r\n private _ngbDatePickerElementRef: NgbInputDatepicker;\r\n\r\n @Input()\r\n public label: string = null;\r\n\r\n @Input()\r\n public disabled: boolean = false;\r\n\r\n @Input(\"control\")\r\n public set controlSetter(originalControl: FormControl) {\r\n this.originalControl = originalControl;\r\n this.control.setValue(this.parseValue(originalControl.value), { emitEvent: false });\r\n }\r\n\r\n public control = new FormControl(null);\r\n public originalControl: FormControl = null;\r\n\r\n @Output()\r\n public onSubmit = new EventEmitter();\r\n\r\n public id: string = null;\r\n public isCalendarOpened: boolean = false;\r\n\r\n public ngOnInit(): void {\r\n this.id = shortKey();\r\n\r\n this.originalControl.valueChanges.pipe(\r\n takeUntil(this.onDestroy)\r\n ).subscribe((value: string) => {\r\n this.control.setValue(this.parseValue(value), { emitEvent: false });\r\n });\r\n\r\n this.control.valueChanges.pipe(\r\n takeUntil(this.onDestroy)\r\n ).subscribe((value: NgbDateStruct) => {\r\n if (value) {\r\n this.originalControl.setValue(`${value.year}-${value.month.toString().padStart(2, \"0\")}-${value.day.toString().padStart(2, \"0\")}`, { emitEvent: false });\r\n } else {\r\n this.originalControl.setValue(\"\", { emitEvent: false });\r\n }\r\n this.onSubmit.emit();\r\n });\r\n }\r\n\r\n public toggleCalendarPopup(): void {\r\n if (this.disabled) {\r\n return;\r\n }\r\n\r\n this._ngbDatePickerElementRef.toggle();\r\n }\r\n\r\n // NOTE: workaround for keyboard navigation\r\n public toggleCalendarPopup_2(): void {\r\n if (this.disabled) {\r\n return;\r\n }\r\n\r\n if (this.isCalendarOpened) {\r\n this._ngbDatePickerElementRef.close();\r\n } else {\r\n this._ngbDatePickerElementRef.open();\r\n }\r\n\r\n this.isCalendarOpened = !this.isCalendarOpened;\r\n }\r\n\r\n public clear(picker: NgbInputDatepicker): void {\r\n this.control.setValue(null);\r\n picker.close();\r\n }\r\n private parseValue(value: string): NgbDateStruct | null {\r\n if (value) {\r\n const dateParts = value.split(\"-\");\r\n const dateValue = {\r\n year: NumericUtils.parse(dateParts[0], null),\r\n month: NumericUtils.parse(dateParts[1], null),\r\n day: NumericUtils.parse(dateParts[2], null)\r\n } as NgbDateStruct;\r\n return dateValue;\r\n } else {\r\n return null;\r\n }\r\n }\r\n}\r\n","import { Component } from \"@angular/core\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-spinner]\",\r\n templateUrl: \"./spinner.component.html\",\r\n host: {\r\n \"class\": \"pcg-spinner\"\r\n },\r\n providers: []\r\n})\r\nexport class SpinnerComponent {\r\n\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { SharedLibraryModule } from \"apps-module/app/shared-library/shared-library.module\";\r\nimport { PaginationComponent } from \"apps-module/app/common-components/pagination/pagination.component\";\r\nimport { SearchBarComponent } from \"apps-module/app/common-components/search-bar/search-bar.component\";\r\nimport { DropdownFilterComponent } from \"apps-module/app/common-components/dropdown-filter/dropdown-filter.component\";\r\nimport { DatePickerComponent } from \"apps-module/app/common-components/date-picker/date-picker.component\";\r\nimport { NgbDatepickerModule } from \"@ng-bootstrap/ng-bootstrap\";\r\nimport { SpinnerComponent } from \"apps-module/app/common-components/spinner/spinner.component\";\r\n\r\n@NgModule({\r\n declarations: [\r\n SpinnerComponent,\r\n DatePickerComponent,\r\n PaginationComponent,\r\n SearchBarComponent,\r\n DropdownFilterComponent\r\n ],\r\n exports: [\r\n SpinnerComponent,\r\n DatePickerComponent,\r\n SharedLibraryModule,\r\n PaginationComponent,\r\n SearchBarComponent,\r\n DropdownFilterComponent\r\n ],\r\n imports: [\r\n NgbDatepickerModule,\r\n SharedLibraryModule\r\n ]\r\n})\r\nexport class CommonComponentsModule { }\r\n","import { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-capacity-filter]\",\r\n templateUrl: \"./capacity-filter.component.html\"\r\n})\r\nexport class CapacityFilterComponent {\r\n\r\n @Input()\r\n public min: number = 1;\r\n\r\n @Input()\r\n public max: number = 1;\r\n\r\n public control: FormControl> = null;\r\n @Input(\"control\")\r\n public set controlSetter(value: FormControl>) {\r\n this.control = value;\r\n }\r\n\r\n @Output()\r\n public onSubmit = new EventEmitter();\r\n\r\n public submit(): void {\r\n this.onSubmit.emit();\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { FilterCheckboxOptionModel } from \"apps-module/app/shared-library/models/filter-checkbox-option.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-checkbox]\",\r\n templateUrl: \"./checkbox.component.html\"\r\n})\r\nexport class CheckboxComponent {\r\n public control = new FormControl(false);\r\n\r\n public id: string = null;\r\n @Input(\"facilityId\")\r\n public set idSetter(value: number){\r\n this.id = `facility-${value}`;\r\n }\r\n\r\n public model: FilterCheckboxOptionModel = null;\r\n @Input(\"value\")\r\n public set valueSetter(value: FilterCheckboxOptionModel) {\r\n this.model = value || null;\r\n this.control.setValue(value?.checked || false);\r\n }\r\n\r\n @Output()\r\n public toggle = new EventEmitter();\r\n\r\n public onToggle(): void {\r\n this.model.checked = this.control.value;\r\n this.toggle.emit(this.model);\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { FilterCheckboxOptionModel } from \"apps-module/app/shared-library/models/filter-checkbox-option.model\";\r\nimport _cloneDeep from \"lodash/cloneDeep\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-facilities-filter]\",\r\n templateUrl: \"./facilities-filter.component.html\"\r\n})\r\nexport class FacilitiesFilterComponent {\r\n\r\n public control: FormControl> = null;\r\n @Input(\"control\")\r\n public set controlSetter(value: FormControl>) {\r\n this.control = value;\r\n }\r\n\r\n public facilities: Array = [];\r\n @Input(\"facilities\")\r\n public set facilitiesSetter(value: Array) {\r\n value = value || [];\r\n this.facilities = value.map(x => {\r\n return { checked: this.control.value.includes(x), value: x } as FilterCheckboxOptionModel;\r\n });\r\n }\r\n\r\n @Output()\r\n public onSelect = new EventEmitter();\r\n\r\n public onToggle(option: FilterCheckboxOptionModel): void {\r\n if (option.checked) {\r\n this.control.value.push(option.value);\r\n } else {\r\n this.control.value.splice(this.control.value.indexOf(option.value), 1);\r\n }\r\n\r\n this.onSelect.emit();\r\n }\r\n}\r\n\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/venues-search/models/search-result-item.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-result-item]\",\r\n templateUrl: \"./result-item.component.html\",\r\n providers: []\r\n})\r\nexport class ResultItemComponent {\r\n\r\n @Input()\r\n public result: SearchResultItemModel = null;\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/venues-search/models/search-result-item.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-results]\",\r\n templateUrl: \"./search-results.component.html\",\r\n providers: []\r\n})\r\nexport class SearchResultsComponent {\r\n\r\n @Input()\r\n public results: Array = [];\r\n\r\n @Input()\r\n public totalCount: number = 0;\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { VenuesSearchComponent } from \"apps-module/app/entry-modules/venues-search/venues-search.component\";\r\nimport { CommonComponentsModule } from \"apps-module/app/common-components/common-components.module\";\r\nimport { NouisliderModule } from \"ng2-nouislider\";\r\nimport { CapacityFilterComponent } from \"apps-module/app/entry-modules/venues-search/components/capacity-filter/capacity-filter.component\";\r\nimport { CheckboxComponent } from \"apps-module/app/entry-modules/venues-search/components/facilities-filter/checkbox/checkbox.component\";\r\nimport { FacilitiesFilterComponent } from \"apps-module/app/entry-modules/venues-search/components/facilities-filter/facilities-filter.component\";\r\nimport { ResultItemComponent } from \"apps-module/app/entry-modules/venues-search/components/search-results/result-item/result-item.component\";\r\nimport { SearchResultsComponent } from \"apps-module/app/entry-modules/venues-search/components/search-results/search-results.component\";\r\n\r\n@NgModule({\r\n declarations: [\r\n VenuesSearchComponent,\r\n CapacityFilterComponent,\r\n FacilitiesFilterComponent,\r\n CheckboxComponent,\r\n ResultItemComponent,\r\n SearchResultsComponent\r\n ],\r\n exports: [VenuesSearchComponent],\r\n imports: [\r\n CommonComponentsModule,\r\n NouisliderModule\r\n ]\r\n})\r\nexport class VenuesSearchModule { }\r\n","import { Injectable } from \"@angular/core\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/vacancies-search/models/search-configuration.model\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/vacancies-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/vacancies-search/models/query-search-parameters.model\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { NumericUtils } from \"apps-module/app/shared-library/utils/numeric.utils\";\r\n\r\n@Injectable()\r\nexport class FormSearchParametersService {\r\n\r\n public constructor(\r\n private _serializationService: QueryStringSerializationService\r\n ) {\r\n }\r\n\r\n public create(queryString: string, configuration: SearchConfigurationModel): FormSearchParametersModel {\r\n const rawValues = this._serializationService.deserialize(queryString);\r\n\r\n const formParameters = {\r\n pageId: configuration.pageId,\r\n pageNumber: NumericUtils.parse(rawValues[nameof(\"pageNumber\")] as string, 1),\r\n searchText: rawValues[nameof(\"searchText\")] as string || \"\",\r\n location: rawValues[nameof(\"location\")] as string || \"\",\r\n jobType: rawValues[nameof(\"jobType\")] as string || \"\",\r\n fromDate: rawValues[nameof(\"fromDate\")] as string || \"\",\r\n toDate: rawValues[nameof(\"toDate\")] as string || \"\"\r\n } as FormSearchParametersModel;\r\n\r\n return formParameters;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/vacancies-search/models/form-search-parameters.model\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/vacancies-search/models/search-result.model\";\r\nimport { ApiRequestDispatcherService } from \"apps-module/app/shared-library/services/api/api-request-dispatcher.service\";\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class SearchService {\r\n public constructor(\r\n private _requestDispatcher: ApiRequestDispatcherService\r\n ) {\r\n }\r\n\r\n public search(searchParams: FormSearchParametersModel): Observable {\r\n return this._requestDispatcher.get(\"/api/vacancies-search/results\", {...searchParams});\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/vacancies-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/vacancies-search/models/query-search-parameters.model\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\n\r\n@Injectable()\r\nexport class QuerySearchParametersService {\r\n\r\n public constructor(\r\n private readonly _serializationService: QueryStringSerializationService,\r\n private readonly _browserWindowService: BrowserWindowService\r\n ) {\r\n }\r\n\r\n public set(searchParameters: FormSearchParametersModel): void {\r\n const queryParams = {\r\n pageNumber: searchParameters.pageNumber,\r\n location: searchParameters.location,\r\n jobType: searchParameters.jobType,\r\n searchText: searchParameters.searchText,\r\n fromDate: searchParameters.fromDate,\r\n toDate: searchParameters.toDate\r\n } as QuerySearchParametersModel;\r\n\r\n const queryString = this._serializationService.serialize(queryParams);\r\n\r\n this._browserWindowService.setQueryString(queryString);\r\n }\r\n}\r\n","import { BaseObservableForm } from \"apps-module/app/shared-library/forms/base-observable.form\";\r\nimport { FormControl, FormGroup } from \"@angular/forms\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport _merge from \"lodash/merge\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/vacancies-search/models/form-search-parameters.model\";\r\n\r\nexport class SearchForm extends BaseObservableForm {\r\n public static createForm(initialSearchParams: FormSearchParametersModel): SearchForm {\r\n const formGroup = new FormGroup({\r\n pageNumber: new FormControl(initialSearchParams.pageNumber),\r\n pageId: new FormControl(initialSearchParams.pageId),\r\n searchText: new FormControl(initialSearchParams.searchText),\r\n location: new FormControl(initialSearchParams.location),\r\n jobType: new FormControl(initialSearchParams.jobType),\r\n fromDate: new FormControl(initialSearchParams.fromDate),\r\n toDate: new FormControl(initialSearchParams.toDate)\r\n });\r\n\r\n return new SearchForm(formGroup, initialSearchParams);\r\n }\r\n\r\n public get nativeForm(): FormGroup { return this.formInstance; }\r\n\r\n public get pageNumber(): FormControl { return this.formInstance.get(nameof(\"pageNumber\")) as FormControl; }\r\n public get pageId(): FormControl { return this.formInstance.get(nameof(\"pageId\")) as FormControl; }\r\n public get searchText(): FormControl { return this.formInstance.get(nameof(\"searchText\")) as FormControl; }\r\n public get location(): FormControl { return this.formInstance.get(nameof(\"location\")) as FormControl; }\r\n public get jobType(): FormControl { return this.formInstance.get(nameof(\"jobType\")) as FormControl; }\r\n public get fromDate(): FormControl { return this.formInstance.get(nameof(\"fromDate\")) as FormControl; }\r\n public get toDate(): FormControl { return this.formInstance.get(nameof(\"toDate\")) as FormControl; }\r\n\r\n private constructor(\r\n formInstance: FormGroup,\r\n initialSearchParams: FormSearchParametersModel\r\n ) {\r\n super(formInstance, initialSearchParams);\r\n }\r\n\r\n public searchByPageNumber(): void {\r\n this.submit({\r\n searchText: this.initialFormState.searchText,\r\n location: this.initialFormState.location,\r\n jobType: this.initialFormState.jobType,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n\r\n public searchByFilters(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n searchText: this.initialFormState.searchText\r\n });\r\n }\r\n\r\n public searchByText(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n location: this.initialFormState.location,\r\n jobType: this.initialFormState.jobType,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n}\r\n","import { Component, ElementRef, OnInit } from \"@angular/core\";\r\nimport { filter, merge, of, Subscription, takeUntil, take } from \"rxjs\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { LockMixin } from \"apps-module/app/shared-library/mixins/lock.mixin\";\r\nimport { ConfigurationService } from \"apps-module/app/shared-library/services/configuration/configuration.service\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/vacancies-search/models/search-configuration.model\";\r\nimport { FormSearchParametersService } from \"apps-module/app/entry-modules/vacancies-search/services/form-search-parameters.service\";\r\nimport { SearchService } from \"apps-module/app/entry-modules/vacancies-search/services/search.service\";\r\nimport { QuerySearchParametersService } from \"apps-module/app/entry-modules/vacancies-search/services/query-search-parameters.service\";\r\nimport { SearchForm } from \"apps-module/app/entry-modules/vacancies-search/forms/search.form\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/vacancies-search/models/form-search-parameters.model\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/vacancies-search/models/search-result-item.model\";\r\nimport { Pending } from \"apps-module/app/shared-library/decorators/pending.decorator\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/vacancies-search/models/search-result.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: VacanciesSearchComponent.SELECTOR,\r\n templateUrl: \"./vacancies-search.component.html\",\r\n providers: [ConfigurationService, FormSearchParametersService, SearchService, QuerySearchParametersService]\r\n})\r\nexport class VacanciesSearchComponent extends DestroyableMixin(LockMixin(EmptyInstance)) implements OnInit {\r\n\r\n public static SELECTOR: string = \"[pcg-ng-vacancies-search]\";\r\n\r\n // TODO: is this decorator necessary?\r\n @Pending\r\n private _onSearch: Subscription;\r\n\r\n public configuration: SearchConfigurationModel;\r\n public searchForm: SearchForm;\r\n public results: Array = [];\r\n public totalPages: number = 1;\r\n public totalCount: number = 0;\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n public statuses = SearchStatus;\r\n\r\n public constructor(\r\n private _domElement: ElementRef,\r\n private _browserWindowService: BrowserWindowService,\r\n private _configurationService: ConfigurationService,\r\n private _searchParametersFactory: FormSearchParametersService,\r\n private _searchService: SearchService,\r\n private _queryStringSetterService: QuerySearchParametersService\r\n ) { super(); }\r\n\r\n public ngOnInit(): void {\r\n this._configurationService.initialize(this._domElement);\r\n\r\n this.configuration = this._configurationService.getConfiguration();\r\n\r\n const queryString = this._browserWindowService.getQueryString();\r\n const searchParameters = this._searchParametersFactory.create(queryString, this.configuration);\r\n this.searchForm = SearchForm.createForm(searchParameters);\r\n\r\n merge(of(searchParameters), this.searchForm.onFormSubmitted)\r\n .pipe(\r\n filter(() => !this.isLocked),\r\n takeUntil(this.onDestroy)\r\n )\r\n .subscribe(searchParams => this.invokeSearch(searchParams));\r\n }\r\n\r\n private invokeSearch(formSearchParameters: FormSearchParametersModel): void {\r\n this.searchStatus = SearchStatus.Loading;\r\n this._queryStringSetterService.set(formSearchParameters);\r\n\r\n this._onSearch = this._searchService.search(formSearchParameters)\r\n .pipe(take(1))\r\n .subscribe({\r\n next: (response: SearchResultModel) => {\r\n const searchResult = {...response.results};\r\n\r\n this.totalCount = searchResult.totalItems ?? 0;\r\n this.totalPages = searchResult.totalPages ?? 1;\r\n this.results = [...searchResult.pageItems];\r\n this.searchStatus = SearchStatus.Success;\r\n },\r\n error: () => this.searchStatus = SearchStatus.Error\r\n });\r\n }\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/vacancies-search/models/search-result-item.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-results]\",\r\n templateUrl: \"./search-results.component.html\",\r\n providers: []\r\n})\r\nexport class SearchResultsComponent {\r\n\r\n @Input()\r\n public results: Array = [];\r\n\r\n @Input()\r\n public totalCount: number = 0;\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/vacancies-search/models/search-result-item.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-result-item]\",\r\n templateUrl: \"./result-item.component.html\",\r\n providers: []\r\n})\r\nexport class ResultItemComponent {\r\n\r\n @Input()\r\n public result: SearchResultItemModel = null;\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { NouisliderModule } from \"ng2-nouislider\";\r\nimport { SearchResultsComponent } from \"apps-module/app/entry-modules/vacancies-search/components/search-results/search-results.component\";\r\nimport { ResultItemComponent } from \"apps-module/app/entry-modules/vacancies-search/components/search-results/result-item/result-item.component\";\r\nimport { VacanciesSearchComponent } from \"apps-module/app/entry-modules/vacancies-search/vacancies-search.component\";\r\nimport { CommonComponentsModule } from \"apps-module/app/common-components/common-components.module\";\r\n\r\n@NgModule({\r\n declarations: [\r\n VacanciesSearchComponent,\r\n ResultItemComponent,\r\n SearchResultsComponent\r\n ],\r\n exports: [VacanciesSearchComponent],\r\n imports: [\r\n CommonComponentsModule,\r\n NouisliderModule\r\n ]\r\n})\r\nexport class VacanciesSearchModule { }\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/content-search/models/search-result-item.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-results]\",\r\n templateUrl: \"./search-results.component.html\",\r\n providers: []\r\n})\r\nexport class SearchResultsComponent {\r\n\r\n @Input()\r\n public results: Array = [];\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/content-search/models/search-result-item.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-result-item]\",\r\n templateUrl: \"./result-item.component.html\",\r\n providers: []\r\n})\r\nexport class ResultItemComponent {\r\n\r\n @Input()\r\n public result: SearchResultItemModel = null;\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/content-search/models/search-configuration.model\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/content-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/content-search/models/query-search-parameters.model\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { NumericUtils } from \"apps-module/app/shared-library/utils/numeric.utils\";\r\nimport { DateFilterValues } from \"apps-module/app/entry-modules/content-search/components/date-filter/date-filter-values.enum\";\r\n\r\n@Injectable()\r\nexport class FormSearchParametersService {\r\n\r\n public constructor(\r\n private _serializationService: QueryStringSerializationService\r\n ) {\r\n }\r\n\r\n public create(queryString: string, configuration: SearchConfigurationModel): FormSearchParametersModel {\r\n const rawValues = this._serializationService.deserialize(queryString);\r\n\r\n const formParameters = {\r\n homePageId: configuration.homePageId,\r\n pageNumber: NumericUtils.parse(rawValues[nameof(\"pageNumber\")] as string, 1),\r\n searchText: rawValues[nameof(\"searchText\")] as string || \"\",\r\n siteSections: rawValues[nameof(\"siteSections\")] as Array || [],\r\n categories: rawValues[nameof(\"categories\")] as Array || [],\r\n dateFilterType: NumericUtils.parse(rawValues[nameof(\"dateFilterType\")] as string, DateFilterValues.All),\r\n fromDate: rawValues[nameof(\"fromDate\")] as string || \"\",\r\n toDate: rawValues[nameof(\"toDate\")] as string || \"\"\r\n } as FormSearchParametersModel;\r\n\r\n return formParameters;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/content-search/models/form-search-parameters.model\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/content-search/models/search-result.model\";\r\nimport { ApiRequestDispatcherService } from \"apps-module/app/shared-library/services/api/api-request-dispatcher.service\";\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class SearchService {\r\n public constructor(\r\n private _requestDispatcher: ApiRequestDispatcherService\r\n ) {\r\n }\r\n\r\n public search(searchParams: FormSearchParametersModel): Observable {\r\n return this._requestDispatcher.get(\"/api/content-search/results\", {...searchParams});\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/content-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/content-search/models/query-search-parameters.model\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\n\r\n@Injectable()\r\nexport class QuerySearchParametersService {\r\n\r\n public constructor(\r\n private readonly _serializationService: QueryStringSerializationService,\r\n private readonly _browserWindowService: BrowserWindowService\r\n ) {\r\n }\r\n\r\n public set(searchParameters: FormSearchParametersModel): void {\r\n const queryParams = {\r\n pageNumber: searchParameters.pageNumber,\r\n siteSections: searchParameters.siteSections,\r\n categories: searchParameters.categories,\r\n searchText: searchParameters.searchText,\r\n dateFilterType: searchParameters.dateFilterType,\r\n fromDate: searchParameters.fromDate,\r\n toDate: searchParameters.toDate\r\n } as QuerySearchParametersModel;\r\n\r\n const queryString = this._serializationService.serialize(queryParams);\r\n\r\n this._browserWindowService.setQueryString(queryString);\r\n }\r\n}\r\n","import { BaseObservableForm } from \"apps-module/app/shared-library/forms/base-observable.form\";\r\nimport { FormControl, FormGroup } from \"@angular/forms\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport _merge from \"lodash/merge\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/content-search/models/form-search-parameters.model\";\r\nimport { DateFilterValues } from \"apps-module/app/entry-modules/content-search/components/date-filter/date-filter-values.enum\";\r\n\r\nexport class SearchForm extends BaseObservableForm {\r\n public static createForm(initialSearchParams: FormSearchParametersModel): SearchForm {\r\n const formGroup = new FormGroup({\r\n pageNumber: new FormControl(initialSearchParams.pageNumber),\r\n homePageId: new FormControl(initialSearchParams.homePageId),\r\n searchText: new FormControl(initialSearchParams.searchText),\r\n siteSections: new FormControl>(initialSearchParams.siteSections),\r\n categories: new FormControl>(initialSearchParams.categories),\r\n dateFilterType: new FormControl(initialSearchParams.dateFilterType),\r\n fromDate: new FormControl(initialSearchParams.fromDate),\r\n toDate: new FormControl(initialSearchParams.toDate)\r\n });\r\n\r\n return new SearchForm(formGroup, initialSearchParams);\r\n }\r\n\r\n public get nativeForm(): FormGroup { return this.formInstance; }\r\n\r\n public get pageNumber(): FormControl { return this.formInstance.get(nameof(\"pageNumber\")) as FormControl; }\r\n public get homePageId(): FormControl { return this.formInstance.get(nameof(\"homePageId\")) as FormControl; }\r\n public get searchText(): FormControl { return this.formInstance.get(nameof(\"searchText\")) as FormControl; }\r\n public get siteSections(): FormControl> { return this.formInstance.get(nameof(\"siteSections\")) as FormControl>; }\r\n public get categories(): FormControl> { return this.formInstance.get(nameof(\"categories\")) as FormControl>; }\r\n public get dateFilterType(): FormControl { return this.formInstance.get(nameof(\"dateFilterType\")) as FormControl; }\r\n public get fromDate(): FormControl { return this.formInstance.get(nameof(\"fromDate\")) as FormControl; }\r\n public get toDate(): FormControl { return this.formInstance.get(nameof(\"toDate\")) as FormControl; }\r\n\r\n private constructor(\r\n formInstance: FormGroup,\r\n initialSearchParams: FormSearchParametersModel\r\n ) {\r\n super(formInstance, initialSearchParams);\r\n }\r\n\r\n public searchByPageNumber(): void {\r\n this.submit({\r\n searchText: this.initialFormState.searchText,\r\n siteSections: this.initialFormState.siteSections,\r\n categories: this.initialFormState.categories,\r\n dateFilterType: this.initialFormState.dateFilterType,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n\r\n public searchByFilters(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n searchText: this.initialFormState.searchText,\r\n dateFilterType: this.initialFormState.dateFilterType,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n\r\n public searchByDates(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n searchText: this.initialFormState.searchText\r\n });\r\n }\r\n\r\n public searchByText(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n dateFilterType: this.initialFormState.dateFilterType,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n}\r\n","import { Component, ElementRef, OnInit, ViewChild } from \"@angular/core\";\r\nimport { filter, merge, of, Subscription, takeUntil, take } from \"rxjs\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { LockMixin } from \"apps-module/app/shared-library/mixins/lock.mixin\";\r\nimport { ConfigurationService } from \"apps-module/app/shared-library/services/configuration/configuration.service\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/content-search/models/search-configuration.model\";\r\nimport { FormSearchParametersService } from \"apps-module/app/entry-modules/content-search/services/form-search-parameters.service\";\r\nimport { SearchService } from \"apps-module/app/entry-modules/content-search/services/search.service\";\r\nimport { QuerySearchParametersService } from \"apps-module/app/entry-modules/content-search/services/query-search-parameters.service\";\r\nimport { SearchForm } from \"apps-module/app/entry-modules/content-search/forms/search.form\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/content-search/models/form-search-parameters.model\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/content-search/models/search-result-item.model\";\r\nimport { Pending } from \"apps-module/app/shared-library/decorators/pending.decorator\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/content-search/models/search-result.model\";\r\nimport { SearchFilterOptionModel } from \"apps-module/app/entry-modules/content-search/models/search-filter-option.model\";\r\n\r\n@Component({\r\n selector: ContentSearchComponent.SELECTOR,\r\n templateUrl: \"./content-search.component.html\",\r\n providers: [ConfigurationService, FormSearchParametersService, SearchService, QuerySearchParametersService]\r\n})\r\nexport class ContentSearchComponent extends DestroyableMixin(LockMixin(EmptyInstance)) implements OnInit {\r\n public static SELECTOR: string = \"[pcg-ng-content-search]\";\r\n\r\n @ViewChild(\"searchFilterToggle\", { read: ElementRef, static: false })\r\n private _searchFilterToggleElementRef: ElementRef;\r\n\r\n @ViewChild(\"searchFilterContent\", { read: ElementRef, static: false })\r\n private _searchFilterContentElementRef: ElementRef;\r\n\r\n // TODO: is this decorator necessary?\r\n @Pending\r\n private _onSearch: Subscription;\r\n\r\n public configuration: SearchConfigurationModel;\r\n public searchForm: SearchForm;\r\n public results: Array = [];\r\n public recommendations: Array = [];\r\n public siteSections: Array = [];\r\n public categories: Array = [];\r\n public totalPages: number = 1;\r\n public totalCount: number = 0;\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n public searchText: string = null;\r\n public statuses = SearchStatus;\r\n\r\n public constructor(\r\n private _domElement: ElementRef,\r\n private _browserWindowService: BrowserWindowService,\r\n private _configurationService: ConfigurationService,\r\n private _searchParametersFactory: FormSearchParametersService,\r\n private _searchService: SearchService,\r\n private _queryStringSetterService: QuerySearchParametersService\r\n ) { super(); }\r\n\r\n public ngOnInit(): void {\r\n this._configurationService.initialize(this._domElement);\r\n\r\n this.configuration = this._configurationService.getConfiguration();\r\n\r\n const queryString = this._browserWindowService.getQueryString();\r\n const searchParameters = this._searchParametersFactory.create(queryString, this.configuration);\r\n this.searchForm = SearchForm.createForm(searchParameters);\r\n\r\n merge(of(searchParameters), this.searchForm.onFormSubmitted)\r\n .pipe(\r\n filter(() => !this.isLocked),\r\n takeUntil(this.onDestroy)\r\n )\r\n .subscribe(searchParams => this.invokeSearch(searchParams));\r\n }\r\n\r\n public searchFilterToggle_onClick(): void {\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\r\n this._searchFilterToggleElementRef.nativeElement.classList.toggle(\"open\");\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\r\n this._searchFilterContentElementRef.nativeElement.classList.toggle(\"open\");\r\n }\r\n\r\n private invokeSearch(formSearchParameters: FormSearchParametersModel): void {\r\n this.searchText = formSearchParameters.searchText;\r\n this.searchStatus = SearchStatus.Loading;\r\n this._queryStringSetterService.set(formSearchParameters);\r\n\r\n this._onSearch = this._searchService.search(formSearchParameters)\r\n .pipe(take(1))\r\n .subscribe({\r\n next: (response: SearchResultModel) => {\r\n this.categories = [...response.categories];\r\n this.siteSections = [...response.siteSections];\r\n\r\n const searchResult = {...response.results};\r\n this.totalCount = searchResult.totalItems ?? 0;\r\n this.totalPages = searchResult.totalPages ?? 1;\r\n this.results = [...searchResult.pageItems];\r\n this.recommendations = response.recommendations?.pageItems ?? [];\r\n this.searchStatus = SearchStatus.Success;\r\n },\r\n error: () => this.searchStatus = SearchStatus.Error\r\n });\r\n }\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-message]\",\r\n templateUrl: \"./search-message.component.html\",\r\n providers: []\r\n})\r\nexport class SearchMessageComponent {\r\n\r\n @Input()\r\n public extraText: string = null;\r\n @Input()\r\n public extraLinkUrl: string = null;\r\n @Input()\r\n public extraLinkText: string = null;\r\n @Input()\r\n public extraLinkTarget: string = null;\r\n\r\n @Input()\r\n public searchText: string = null;\r\n\r\n @Input()\r\n public totalCount: number = 0;\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { formatDate } from \"@angular/common\";\r\nimport { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { DateFilterValues } from \"apps-module/app/entry-modules/content-search/components/date-filter/date-filter-values.enum\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { Subscription } from \"rxjs\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-date-filter]\",\r\n templateUrl: \"./date-filter.component.html\",\r\n providers: []\r\n})\r\nexport class DateFilterComponent extends DestroyableMixin(EmptyInstance) implements OnInit {\r\n public readonly DateFilterValues = DateFilterValues;\r\n public readonly customFromDateControl = new FormControl(null);\r\n public readonly customToDateControl = new FormControl(null);\r\n\r\n @Input(\"type\")\r\n public set radioSetter(value: FormControl){\r\n this.radioControl = value;\r\n }\r\n\r\n @Input(\"fromDate\")\r\n public set fromDateSetter(value: FormControl){\r\n this.fromDateControl = value;\r\n }\r\n\r\n @Input(\"toDate\")\r\n public set toDateSetter(value: FormControl){\r\n this.toDateControl = value;\r\n }\r\n\r\n public radioControl = new FormControl(DateFilterValues.All);\r\n public fromDateControl: FormControl = null;\r\n public toDateControl: FormControl = null;\r\n\r\n @Output()\r\n public onSubmit = new EventEmitter();\r\n\r\n public onValueChange: Subscription = null;\r\n\r\n public ngOnInit(): void {\r\n this.onValueChange = this.radioControl.valueChanges.subscribe((value: DateFilterValues) => this.setDateControls(value));\r\n\r\n if (this.radioControl.value === DateFilterValues.Custom) {\r\n this.customFromDateControl.setValue(this.fromDateControl.value);\r\n this.customToDateControl.setValue(this.toDateControl.value);\r\n }\r\n\r\n this.setDateControls(this.radioControl.value);\r\n }\r\n\r\n public submit(): void {\r\n if (this.radioControl.value === DateFilterValues.Custom) {\r\n this.fromDateControl.setValue(this.customFromDateControl.value);\r\n this.toDateControl.setValue(this.customToDateControl.value);\r\n }\r\n\r\n this.onSubmit.emit();\r\n }\r\n\r\n private setDateControls(value: DateFilterValues): void {\r\n const now = new Date();\r\n const format = \"yyyy-MM-dd\";\r\n const locale = \"en\";\r\n\r\n switch (value) {\r\n case DateFilterValues.ThisMonth:\r\n this.fromDateControl.setValue(formatDate(new Date(now.getFullYear(), now.getMonth(), 1), format, locale));\r\n this.toDateControl.setValue(formatDate(new Date(now.getFullYear(), now.getMonth() + 1, 0), format, locale));\r\n break;\r\n case DateFilterValues.LastMonth:\r\n this.fromDateControl.setValue(formatDate(new Date(now.getFullYear(), now.getMonth() - 1, 1), format, locale));\r\n this.toDateControl.setValue(formatDate(new Date(now.getFullYear(), now.getMonth(), 0), format, locale));\r\n break;\r\n case DateFilterValues.Last12Month:\r\n this.fromDateControl.setValue(formatDate(new Date(now.getFullYear() - 1, now.getMonth(), now.getDay()), format, locale));\r\n this.toDateControl.setValue(formatDate(new Date(now.getFullYear(), now.getMonth(), now.getDay()), format, locale));\r\n break;\r\n case DateFilterValues.Custom:\r\n this.fromDateControl.setValue(this.customFromDateControl.value);\r\n this.toDateControl.setValue(this.customToDateControl.value);\r\n break;\r\n case DateFilterValues.All:\r\n default:\r\n this.fromDateControl.reset();\r\n this.toDateControl.reset();\r\n break;\r\n }\r\n\r\n this.customFromDateControl.setValue(this.fromDateControl.value);\r\n this.customToDateControl.setValue(this.toDateControl.value);\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { SearchFilterOptionModel } from \"apps-module/app/entry-modules/content-search/models/search-filter-option.model\";\r\nimport { shortKey } from \"apps-module/app/shared-library/utils/common.utils\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-checkbox]\",\r\n templateUrl: \"./checkbox.component.html\"\r\n})\r\nexport class CheckboxComponent implements OnInit {\r\n public id: string = null;\r\n\r\n public control = new FormControl(false);\r\n\r\n public model: SearchFilterOptionModel = null;\r\n @Input(\"value\")\r\n public set valueSetter(value: SearchFilterOptionModel) {\r\n this.model = value || null;\r\n this.control.setValue(value?.selected || false);\r\n }\r\n\r\n @Output()\r\n public toggle = new EventEmitter();\r\n\r\n public onToggle(): void {\r\n this.model.selected = this.control.value;\r\n this.toggle.emit(this.model);\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.id = shortKey();\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { SearchFilterOptionModel } from \"apps-module/app/entry-modules/content-search/models/search-filter-option.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-filter]\",\r\n templateUrl: \"./search-filter.component.html\",\r\n providers: []\r\n})\r\nexport class SearchFilterComponent {\r\n\r\n @Input()\r\n public label: string = null;\r\n\r\n public control: FormControl> = null;\r\n @Input(\"control\")\r\n public set controlSetter(value: FormControl>) {\r\n this.control = value;\r\n }\r\n\r\n public options: Array = [];\r\n @Input(\"options\")\r\n public set optionsSetter(value: Array) {\r\n this.options = value || [];\r\n }\r\n\r\n @Output()\r\n public onSelect = new EventEmitter();\r\n\r\n public onToggle(option: SearchFilterOptionModel): void {\r\n if (option.selected) {\r\n this.control.value.push(option.name);\r\n } else {\r\n this.control.value.splice(this.control.value.indexOf(option.name), 1);\r\n }\r\n\r\n this.onSelect.emit();\r\n }\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { NouisliderModule } from \"ng2-nouislider\";\r\nimport { SearchResultsComponent } from \"apps-module/app/entry-modules/content-search/components/search-results/search-results.component\";\r\nimport { ResultItemComponent } from \"apps-module/app/entry-modules/content-search/components/search-results/result-item/result-item.component\";\r\nimport { ContentSearchComponent } from \"apps-module/app/entry-modules/content-search/content-search.component\";\r\nimport { CommonComponentsModule } from \"apps-module/app/common-components/common-components.module\";\r\nimport { SearchMessageComponent } from \"apps-module/app/entry-modules/content-search/components/search-message/search-message.component\";\r\nimport { DateFilterComponent } from \"apps-module/app/entry-modules/content-search/components/date-filter/date-filter.component\";\r\nimport { CheckboxComponent } from \"apps-module/app/entry-modules/content-search/components/search-filter/checkbox/checkbox.component\";\r\nimport { SearchFilterComponent } from \"apps-module/app/entry-modules/content-search/components/search-filter/search-filter.component\";\r\n\r\n@NgModule({\r\n declarations: [\r\n CheckboxComponent,\r\n SearchMessageComponent,\r\n SearchFilterComponent,\r\n DateFilterComponent,\r\n ContentSearchComponent,\r\n ResultItemComponent,\r\n SearchResultsComponent\r\n ],\r\n exports: [ContentSearchComponent],\r\n imports: [\r\n CommonComponentsModule,\r\n NouisliderModule\r\n ]\r\n})\r\nexport class ContentSearchModule { }\r\n","import { Injectable } from \"@angular/core\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/search-configuration.model\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/query-search-parameters.model\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { NumericUtils } from \"apps-module/app/shared-library/utils/numeric.utils\";\r\n\r\n@Injectable()\r\nexport class FormSearchParametersService {\r\n\r\n public constructor(\r\n private _serializationService: QueryStringSerializationService\r\n ) {\r\n }\r\n\r\n public create(queryString: string, configuration: SearchConfigurationModel): FormSearchParametersModel {\r\n const rawValues = this._serializationService.deserialize(queryString);\r\n\r\n const stringDrivingLicence = rawValues[nameof(\"drivingLicence\")] as string;\r\n let drivingLicence = null;\r\n if (stringDrivingLicence && stringDrivingLicence !== \"null\") {\r\n drivingLicence = Boolean(stringDrivingLicence);\r\n }\r\n\r\n const formParameters = {\r\n pageId: configuration.pageId,\r\n pageNumber: NumericUtils.parse(rawValues[nameof(\"pageNumber\")] as string, 1),\r\n searchText: rawValues[nameof(\"searchText\")] as string || \"\",\r\n location: rawValues[nameof(\"location\")] as string || \"\",\r\n gender: rawValues[nameof(\"gender\")] as string || \"\",\r\n drivingLicence: drivingLicence,\r\n workingRelationship: rawValues[nameof(\"workingRelationship\")] as string || \"\"\r\n } as FormSearchParametersModel;\r\n\r\n return formParameters;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/form-search-parameters.model\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/search-result.model\";\r\nimport { ApiRequestDispatcherService } from \"apps-module/app/shared-library/services/api/api-request-dispatcher.service\";\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class SearchService {\r\n public constructor(\r\n private _requestDispatcher: ApiRequestDispatcherService\r\n ) {\r\n }\r\n\r\n public search(searchParams: FormSearchParametersModel): Observable {\r\n return this._requestDispatcher.get(\"/api/assistants-profile-search/results\", {...searchParams});\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/query-search-parameters.model\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\n\r\n@Injectable()\r\nexport class QuerySearchParametersService {\r\n\r\n public constructor(\r\n private readonly _serializationService: QueryStringSerializationService,\r\n private readonly _browserWindowService: BrowserWindowService\r\n ) {\r\n }\r\n\r\n public set(searchParameters: FormSearchParametersModel): void {\r\n const queryParams = {\r\n pageNumber: searchParameters.pageNumber,\r\n location: searchParameters.location,\r\n gender: searchParameters.gender,\r\n searchText: searchParameters.searchText,\r\n drivingLicence: searchParameters.drivingLicence,\r\n workingRelationship: searchParameters.workingRelationship\r\n } as QuerySearchParametersModel;\r\n\r\n const queryString = this._serializationService.serialize(queryParams);\r\n\r\n this._browserWindowService.setQueryString(queryString);\r\n }\r\n}\r\n","import { BaseObservableForm } from \"apps-module/app/shared-library/forms/base-observable.form\";\r\nimport { FormControl, FormGroup } from \"@angular/forms\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport _merge from \"lodash/merge\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/form-search-parameters.model\";\r\n\r\nexport class SearchForm extends BaseObservableForm {\r\n public static createForm(initialSearchParams: FormSearchParametersModel): SearchForm {\r\n const formGroup = new FormGroup({\r\n pageNumber: new FormControl(initialSearchParams.pageNumber),\r\n pageId: new FormControl(initialSearchParams.pageId),\r\n searchText: new FormControl(initialSearchParams.searchText),\r\n location: new FormControl(initialSearchParams.location),\r\n gender: new FormControl(initialSearchParams.gender),\r\n drivingLicence: new FormControl(initialSearchParams.drivingLicence),\r\n workingRelationship: new FormControl(initialSearchParams.workingRelationship)\r\n });\r\n\r\n return new SearchForm(formGroup, initialSearchParams);\r\n }\r\n\r\n public get nativeForm(): FormGroup { return this.formInstance; }\r\n\r\n public get pageNumber(): FormControl { return this.formInstance.get(nameof(\"pageNumber\")) as FormControl; }\r\n public get pageId(): FormControl { return this.formInstance.get(nameof(\"pageId\")) as FormControl; }\r\n public get searchText(): FormControl { return this.formInstance.get(nameof(\"searchText\")) as FormControl; }\r\n public get location(): FormControl { return this.formInstance.get(nameof(\"location\")) as FormControl; }\r\n public get gender(): FormControl { return this.formInstance.get(nameof(\"gender\")) as FormControl; }\r\n public get drivingLicence(): FormControl { return this.formInstance.get(nameof(\"drivingLicence\")) as FormControl; }\r\n public get workingRelationship(): FormControl { return this.formInstance.get(nameof(\"workingRelationship\")) as FormControl; }\r\n\r\n private constructor(\r\n formInstance: FormGroup,\r\n initialSearchParams: FormSearchParametersModel\r\n ) {\r\n super(formInstance, initialSearchParams);\r\n }\r\n\r\n public searchByPageNumber(): void {\r\n this.submit({\r\n searchText: this.initialFormState.searchText,\r\n location: this.initialFormState.location,\r\n jobType: this.initialFormState.gender,\r\n fromDate: this.initialFormState.drivingLicence,\r\n toDate: this.initialFormState.workingRelationship\r\n });\r\n }\r\n\r\n public searchByFilters(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n searchText: this.initialFormState.searchText\r\n });\r\n }\r\n\r\n public searchByText(): void {\r\n this.submit({\r\n pageNumber: 1\r\n });\r\n }\r\n}\r\n","import { Component, ElementRef, OnInit } from \"@angular/core\";\r\nimport { filter, merge, of, Subscription, takeUntil, take } from \"rxjs\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { LockMixin } from \"apps-module/app/shared-library/mixins/lock.mixin\";\r\nimport { ConfigurationService } from \"apps-module/app/shared-library/services/configuration/configuration.service\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/search-configuration.model\";\r\nimport { FormSearchParametersService } from \"apps-module/app/entry-modules/assistants-profile-search/services/form-search-parameters.service\";\r\nimport { SearchService } from \"apps-module/app/entry-modules/assistants-profile-search/services/search.service\";\r\nimport { QuerySearchParametersService } from \"apps-module/app/entry-modules/assistants-profile-search/services/query-search-parameters.service\";\r\nimport { SearchForm } from \"apps-module/app/entry-modules/assistants-profile-search/forms/search.form\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/form-search-parameters.model\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/search-result-item.model\";\r\nimport { Pending } from \"apps-module/app/shared-library/decorators/pending.decorator\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/search-result.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: AssistantsProfileSearchComponent.SELECTOR,\r\n templateUrl: \"./assistants-profile-search.component.html\",\r\n providers: [ConfigurationService, FormSearchParametersService, SearchService, QuerySearchParametersService]\r\n})\r\nexport class AssistantsProfileSearchComponent extends DestroyableMixin(LockMixin(EmptyInstance)) implements OnInit {\r\n\r\n public static SELECTOR: string = \"[pcg-ng-assistants-profile-search]\";\r\n\r\n // TODO: is this decorator necessary?\r\n @Pending\r\n private _onSearch: Subscription;\r\n\r\n public configuration: SearchConfigurationModel;\r\n public searchForm: SearchForm;\r\n public results: Array = [];\r\n public totalPages: number = 1;\r\n public totalCount: number = 0;\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n public statuses = SearchStatus;\r\n\r\n public constructor(\r\n private _domElement: ElementRef,\r\n private _browserWindowService: BrowserWindowService,\r\n private _configurationService: ConfigurationService,\r\n private _searchParametersFactory: FormSearchParametersService,\r\n private _searchService: SearchService,\r\n private _queryStringSetterService: QuerySearchParametersService\r\n ) { super(); }\r\n\r\n public ngOnInit(): void {\r\n this._configurationService.initialize(this._domElement);\r\n\r\n this.configuration = this._configurationService.getConfiguration();\r\n\r\n const queryString = this._browserWindowService.getQueryString();\r\n const searchParameters = this._searchParametersFactory.create(queryString, this.configuration);\r\n this.searchForm = SearchForm.createForm(searchParameters);\r\n\r\n merge(of(searchParameters), this.searchForm.onFormSubmitted)\r\n .pipe(\r\n filter(() => !this.isLocked),\r\n takeUntil(this.onDestroy)\r\n )\r\n .subscribe(searchParams => this.invokeSearch(searchParams));\r\n }\r\n\r\n private invokeSearch(formSearchParameters: FormSearchParametersModel): void {\r\n this.searchStatus = SearchStatus.Loading;\r\n this._queryStringSetterService.set(formSearchParameters);\r\n\r\n this._onSearch = this._searchService.search(formSearchParameters)\r\n .pipe(take(1))\r\n .subscribe({\r\n next: (response: SearchResultModel) => {\r\n const searchResult = {...response.results};\r\n\r\n this.totalCount = searchResult.totalItems ?? 0;\r\n this.totalPages = searchResult.totalPages ?? 1;\r\n this.results = [...searchResult.pageItems];\r\n this.searchStatus = SearchStatus.Success;\r\n },\r\n error: () => this.searchStatus = SearchStatus.Error\r\n });\r\n }\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/search-result-item.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-results]\",\r\n templateUrl: \"./search-results.component.html\",\r\n providers: []\r\n})\r\nexport class SearchResultsComponent {\r\n\r\n @Input()\r\n public results: Array = [];\r\n\r\n @Input()\r\n public totalCount: number = 0;\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/assistants-profile-search/models/search-result-item.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-result-item]\",\r\n templateUrl: \"./result-item.component.html\",\r\n providers: []\r\n})\r\nexport class ResultItemComponent {\r\n\r\n @Input()\r\n public result: SearchResultItemModel = null;\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\nimport { shortKey } from \"apps-module/app/shared-library/utils/common.utils\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-boolean-dropdown-filter]\",\r\n templateUrl: \"./boolean-dropdown-filter.component.html\"\r\n})\r\nexport class BooleanDropdownFilterComponent implements OnInit {\r\n\r\n public control: FormControl = null;\r\n @Input(\"control\")\r\n public set controlSetter(value: FormControl) {\r\n this.control = value;\r\n }\r\n\r\n public id: string = null;\r\n\r\n public ngOnInit(): void {\r\n this.id = shortKey();\r\n }\r\n\r\n @Input()\r\n public values: Array = [];\r\n\r\n @Input()\r\n public label: string = null;\r\n\r\n @Output()\r\n public onSubmit = new EventEmitter();\r\n\r\n public submit(): void {\r\n this.onSubmit.emit();\r\n }\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { NouisliderModule } from \"ng2-nouislider\";\r\nimport { SearchResultsComponent } from \"apps-module/app/entry-modules/assistants-profile-search/components/search-results/search-results.component\";\r\nimport { ResultItemComponent } from \"apps-module/app/entry-modules/assistants-profile-search/components/search-results/result-item/result-item.component\";\r\nimport { AssistantsProfileSearchComponent } from \"apps-module/app/entry-modules/assistants-profile-search/assistants-profile-search.component\";\r\nimport { CommonComponentsModule } from \"apps-module/app/common-components/common-components.module\";\r\nimport { BooleanDropdownFilterComponent } from \"apps-module/app/entry-modules/assistants-profile-search/components/boolean-dropdown-filter/boolean-dropdown-filter.component\";\r\n\r\n@NgModule({\r\n declarations: [\r\n BooleanDropdownFilterComponent,\r\n AssistantsProfileSearchComponent,\r\n ResultItemComponent,\r\n SearchResultsComponent\r\n ],\r\n exports: [AssistantsProfileSearchComponent],\r\n imports: [\r\n CommonComponentsModule,\r\n NouisliderModule\r\n ]\r\n})\r\nexport class AssistantsProfileSearchModule { }\r\n","import { Injectable } from \"@angular/core\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/event-search/models/search-configuration.model\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/event-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/event-search/models/query-search-parameters.model\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { NumericUtils } from \"apps-module/app/shared-library/utils/numeric.utils\";\r\n\r\n@Injectable()\r\nexport class FormSearchParametersService {\r\n\r\n public constructor(\r\n private _serializationService: QueryStringSerializationService\r\n ) {\r\n }\r\n\r\n public create(queryString: string, configuration: SearchConfigurationModel): FormSearchParametersModel {\r\n const rawValues = this._serializationService.deserialize(queryString);\r\n\r\n const formParameters = {\r\n homePageId: configuration.homePageId,\r\n pageNumber: NumericUtils.parse(rawValues[nameof(\"pageNumber\")] as string, 1),\r\n searchText: rawValues[nameof(\"searchText\")] as string || \"\",\r\n fromDate: rawValues[nameof(\"fromDate\")] as string || \"\",\r\n toDate: rawValues[nameof(\"toDate\")] as string || \"\"\r\n } as FormSearchParametersModel;\r\n\r\n return formParameters;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/event-search/models/form-search-parameters.model\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/event-search/models/search-result.model\";\r\nimport { ApiRequestDispatcherService } from \"apps-module/app/shared-library/services/api/api-request-dispatcher.service\";\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class SearchService {\r\n public constructor(\r\n private _requestDispatcher: ApiRequestDispatcherService\r\n ) {\r\n }\r\n\r\n public search(searchParams: FormSearchParametersModel): Observable {\r\n return this._requestDispatcher.get(\"/api/events-search/results\", {...searchParams});\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/event-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/event-search/models/query-search-parameters.model\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\n\r\n@Injectable()\r\nexport class QuerySearchParametersService {\r\n\r\n public constructor(\r\n private readonly _serializationService: QueryStringSerializationService,\r\n private readonly _browserWindowService: BrowserWindowService\r\n ) {\r\n }\r\n\r\n public set(searchParameters: FormSearchParametersModel): void {\r\n const queryParams = {\r\n pageNumber: searchParameters.pageNumber,\r\n searchText: searchParameters.searchText,\r\n fromDate: searchParameters.fromDate,\r\n toDate: searchParameters.toDate\r\n } as QuerySearchParametersModel;\r\n\r\n const queryString = this._serializationService.serialize(queryParams);\r\n\r\n this._browserWindowService.setQueryString(queryString);\r\n }\r\n}\r\n","import { BaseObservableForm } from \"apps-module/app/shared-library/forms/base-observable.form\";\r\nimport { FormControl, FormGroup } from \"@angular/forms\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport _merge from \"lodash/merge\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/event-search/models/form-search-parameters.model\";\r\n\r\nexport class SearchForm extends BaseObservableForm {\r\n public static createForm(initialSearchParams: FormSearchParametersModel): SearchForm {\r\n const formGroup = new FormGroup({\r\n pageNumber: new FormControl(initialSearchParams.pageNumber),\r\n homePageId: new FormControl(initialSearchParams.homePageId),\r\n searchText: new FormControl(initialSearchParams.searchText),\r\n fromDate: new FormControl(initialSearchParams.fromDate),\r\n toDate: new FormControl(initialSearchParams.toDate)\r\n });\r\n\r\n return new SearchForm(formGroup, initialSearchParams);\r\n }\r\n\r\n public get nativeForm(): FormGroup { return this.formInstance; }\r\n\r\n public get pageNumber(): FormControl { return this.formInstance.get(nameof(\"pageNumber\")) as FormControl; }\r\n public get homePageId(): FormControl { return this.formInstance.get(nameof(\"homePageId\")) as FormControl; }\r\n public get searchText(): FormControl { return this.formInstance.get(nameof(\"searchText\")) as FormControl; }\r\n public get fromDate(): FormControl { return this.formInstance.get(nameof(\"fromDate\")) as FormControl; }\r\n public get toDate(): FormControl { return this.formInstance.get(nameof(\"toDate\")) as FormControl; }\r\n\r\n private constructor(\r\n formInstance: FormGroup,\r\n initialSearchParams: FormSearchParametersModel\r\n ) {\r\n super(formInstance, initialSearchParams);\r\n }\r\n\r\n public searchByPageNumber(): void {\r\n this.submit({\r\n searchText: this.initialFormState.searchText,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n\r\n public searchByFilters(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n searchText: this.initialFormState.searchText,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n\r\n public searchByDates(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n searchText: this.initialFormState.searchText\r\n });\r\n }\r\n\r\n public searchByText(): void {\r\n this.submit({\r\n pageNumber: 1,\r\n fromDate: this.initialFormState.fromDate,\r\n toDate: this.initialFormState.toDate\r\n });\r\n }\r\n}\r\n","import { Component, ElementRef, OnInit } from \"@angular/core\";\r\nimport { filter, merge, of, Subscription, takeUntil, take } from \"rxjs\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { LockMixin } from \"apps-module/app/shared-library/mixins/lock.mixin\";\r\nimport { ConfigurationService } from \"apps-module/app/shared-library/services/configuration/configuration.service\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/event-search/models/search-configuration.model\";\r\nimport { FormSearchParametersService } from \"apps-module/app/entry-modules/event-search/services/form-search-parameters.service\";\r\nimport { SearchService } from \"apps-module/app/entry-modules/event-search/services/search.service\";\r\nimport { QuerySearchParametersService } from \"apps-module/app/entry-modules/event-search/services/query-search-parameters.service\";\r\nimport { SearchForm } from \"apps-module/app/entry-modules/event-search/forms/search.form\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/event-search/models/form-search-parameters.model\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/event-search/models/search-result-item.model\";\r\nimport { Pending } from \"apps-module/app/shared-library/decorators/pending.decorator\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/event-search/models/search-result.model\";\r\n\r\n@Component({\r\n selector: EventSearchComponent.SELECTOR,\r\n templateUrl: \"./event-search.component.html\",\r\n providers: [ConfigurationService, FormSearchParametersService, SearchService, QuerySearchParametersService]\r\n})\r\nexport class EventSearchComponent extends DestroyableMixin(LockMixin(EmptyInstance)) implements OnInit {\r\n\r\n public static SELECTOR: string = \"[pcg-ng-event-search]\";\r\n\r\n // TODO: is this decorator necessary?\r\n @Pending\r\n private _onSearch: Subscription;\r\n\r\n public configuration: SearchConfigurationModel;\r\n public searchForm: SearchForm;\r\n public results: Array = [];\r\n public totalPages: number = 1;\r\n public totalCount: number = 0;\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n public searchText: string = null;\r\n\r\n public constructor(\r\n private _domElement: ElementRef,\r\n private _browserWindowService: BrowserWindowService,\r\n private _configurationService: ConfigurationService,\r\n private _searchParametersFactory: FormSearchParametersService,\r\n private _searchService: SearchService,\r\n private _queryStringSetterService: QuerySearchParametersService\r\n ) { super(); }\r\n\r\n public ngOnInit(): void {\r\n this._configurationService.initialize(this._domElement);\r\n\r\n this.configuration = this._configurationService.getConfiguration();\r\n\r\n const queryString = this._browserWindowService.getQueryString();\r\n const searchParameters = this._searchParametersFactory.create(queryString, this.configuration);\r\n this.searchForm = SearchForm.createForm(searchParameters);\r\n\r\n merge(of(searchParameters), this.searchForm.onFormSubmitted)\r\n .pipe(\r\n filter(() => !this.isLocked),\r\n takeUntil(this.onDestroy)\r\n )\r\n .subscribe(searchParams => this.invokeSearch(searchParams));\r\n }\r\n\r\n private invokeSearch(formSearchParameters: FormSearchParametersModel): void {\r\n this.searchText = formSearchParameters.searchText;\r\n this.searchStatus = SearchStatus.Loading;\r\n this._queryStringSetterService.set(formSearchParameters);\r\n\r\n this._onSearch = this._searchService.search(formSearchParameters)\r\n .pipe(take(1))\r\n .subscribe({\r\n next: (response: SearchResultModel) => {\r\n\r\n const searchResult = {...response.results};\r\n this.totalCount = searchResult.totalItems ?? 0;\r\n this.totalPages = searchResult.totalPages ?? 1;\r\n this.results = [...searchResult.pageItems];\r\n this.searchStatus = SearchStatus.Success;\r\n },\r\n error: () => this.searchStatus = SearchStatus.Error\r\n });\r\n }\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/event-search/models/search-result-item.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-results]\",\r\n templateUrl: \"./search-results.component.html\",\r\n providers: []\r\n})\r\nexport class SearchResultsComponent {\r\n\r\n @Input()\r\n public results: Array = [];\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/event-search/models/search-result-item.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-result-item]\",\r\n templateUrl: \"./result-item.component.html\",\r\n providers: []\r\n})\r\nexport class ResultItemComponent {\r\n\r\n @Input()\r\n public result: SearchResultItemModel = null;\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-message]\",\r\n templateUrl: \"./search-message.component.html\",\r\n providers: []\r\n})\r\nexport class SearchMessageComponent {\r\n\r\n @Input()\r\n public extraText: string = null;\r\n @Input()\r\n public extraLinkUrl: string = null;\r\n @Input()\r\n public extraLinkText: string = null;\r\n @Input()\r\n public extraLinkTarget: string = null;\r\n\r\n @Input()\r\n public searchText: string = null;\r\n\r\n @Input()\r\n public totalCount: number = 0;\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\nimport { FormControl } from \"@angular/forms\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-date-filter]\",\r\n templateUrl: \"./date-filter.component.html\",\r\n providers: []\r\n})\r\nexport class DateFilterComponent {\r\n\r\n public fromDateControl: FormControl = null;\r\n @Input(\"fromDate\")\r\n public set fromDateSetter(value: FormControl){\r\n this.fromDateControl = value;\r\n }\r\n\r\n public toDateControl: FormControl = null;\r\n @Input(\"toDate\")\r\n public set toDateSetter(value: FormControl){\r\n this.toDateControl = value;\r\n }\r\n\r\n @Output()\r\n public onSubmit = new EventEmitter();\r\n\r\n public submit(): void {\r\n this.onSubmit.emit();\r\n }\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { NouisliderModule } from \"ng2-nouislider\";\r\nimport { SearchResultsComponent } from \"apps-module/app/entry-modules/event-search/components/search-results/search-results.component\";\r\nimport { ResultItemComponent } from \"apps-module/app/entry-modules/event-search/components/search-results/result-item/result-item.component\";\r\nimport { EventSearchComponent } from \"apps-module/app/entry-modules/event-search/event-search.component\";\r\nimport { CommonComponentsModule } from \"apps-module/app/common-components/common-components.module\";\r\nimport { SearchMessageComponent } from \"apps-module/app/entry-modules/event-search/components/search-message/search-message.component\";\r\nimport { DateFilterComponent } from \"apps-module/app/entry-modules/event-search/components/date-filter/date-filter.component\";\r\n\r\n@NgModule({\r\n declarations: [\r\n SearchMessageComponent,\r\n DateFilterComponent,\r\n EventSearchComponent,\r\n ResultItemComponent,\r\n SearchResultsComponent\r\n ],\r\n exports: [EventSearchComponent],\r\n imports: [\r\n CommonComponentsModule,\r\n NouisliderModule\r\n ]\r\n})\r\nexport class EventSearchModule { }\r\n","import { Injectable } from \"@angular/core\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/news-search/models/search-configuration.model\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/news-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/news-search/models/query-search-parameters.model\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { NumericUtils } from \"apps-module/app/shared-library/utils/numeric.utils\";\r\n\r\n@Injectable()\r\nexport class FormSearchParametersService {\r\n\r\n public constructor(\r\n private _serializationService: QueryStringSerializationService\r\n ) {\r\n }\r\n\r\n public create(queryString: string, configuration: SearchConfigurationModel): FormSearchParametersModel {\r\n const rawValues = this._serializationService.deserialize(queryString);\r\n\r\n const formParameters = {\r\n pageId: configuration.pageId,\r\n pageNumber: NumericUtils.parse(rawValues[nameof(\"pageNumber\")] as string, 1)\r\n } as FormSearchParametersModel;\r\n\r\n return formParameters;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/news-search/models/form-search-parameters.model\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/news-search/models/search-result.model\";\r\nimport { ApiRequestDispatcherService } from \"apps-module/app/shared-library/services/api/api-request-dispatcher.service\";\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class SearchService {\r\n public constructor(\r\n private _requestDispatcher: ApiRequestDispatcherService\r\n ) {\r\n }\r\n\r\n public search(searchParams: FormSearchParametersModel): Observable {\r\n return this._requestDispatcher.get(\"/api/news-search/results\", {...searchParams});\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/news-search/models/form-search-parameters.model\";\r\nimport { QuerySearchParametersModel } from \"apps-module/app/entry-modules/news-search/models/query-search-parameters.model\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { QueryStringSerializationService } from \"apps-module/app/shared-library/services/environment/query-string-serialization.service\";\r\n\r\n@Injectable()\r\nexport class QuerySearchParametersService {\r\n\r\n public constructor(\r\n private readonly _serializationService: QueryStringSerializationService,\r\n private readonly _browserWindowService: BrowserWindowService\r\n ) {\r\n }\r\n\r\n public set(searchParameters: FormSearchParametersModel): void {\r\n const queryParams = {\r\n pageNumber: searchParameters.pageNumber\r\n } as QuerySearchParametersModel;\r\n\r\n const queryString = this._serializationService.serialize(queryParams);\r\n\r\n this._browserWindowService.setQueryString(queryString);\r\n }\r\n}\r\n","import { BaseObservableForm } from \"apps-module/app/shared-library/forms/base-observable.form\";\r\nimport { FormControl, FormGroup } from \"@angular/forms\";\r\nimport { nameof } from \"apps-module/app/shared-library/utils/common.utils\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/news-search/models/form-search-parameters.model\";\r\n\r\nexport class SearchForm extends BaseObservableForm {\r\n public static createForm(initialSearchParams: FormSearchParametersModel): SearchForm {\r\n const formGroup = new FormGroup({\r\n pageNumber: new FormControl(initialSearchParams.pageNumber),\r\n pageId: new FormControl(initialSearchParams.pageId)\r\n });\r\n\r\n return new SearchForm(formGroup, initialSearchParams);\r\n }\r\n\r\n public get nativeForm(): FormGroup { return this.formInstance; }\r\n\r\n public get pageNumber(): FormControl { return this.formInstance.get(nameof(\"pageNumber\")) as FormControl; }\r\n public get pageId(): FormControl { return this.formInstance.get(nameof(\"pageId\")) as FormControl; }\r\n\r\n private constructor(\r\n formInstance: FormGroup,\r\n initialSearchParams: FormSearchParametersModel\r\n ) {\r\n super(formInstance, initialSearchParams);\r\n }\r\n\r\n public searchByPageNumber(): void {\r\n this.submit({});\r\n }\r\n}\r\n","import { Component, ElementRef, OnInit } from \"@angular/core\";\r\nimport { filter, merge, of, Subscription, takeUntil, take } from \"rxjs\";\r\nimport _cloneDeep from \"lodash/cloneDeep\";\r\nimport { DestroyableMixin } from \"apps-module/app/shared-library/mixins/destroyable.mixin\";\r\nimport { LockMixin } from \"apps-module/app/shared-library/mixins/lock.mixin\";\r\nimport { ConfigurationService } from \"apps-module/app/shared-library/services/configuration/configuration.service\";\r\nimport { BrowserWindowService } from \"apps-module/app/shared-library/services/environment/browser-window.service\";\r\nimport { EmptyInstance } from \"core-library/mixins/empty-instance\";\r\nimport { SearchConfigurationModel } from \"apps-module/app/entry-modules/news-search/models/search-configuration.model\";\r\nimport { FormSearchParametersService } from \"apps-module/app/entry-modules/news-search/services/form-search-parameters.service\";\r\nimport { SearchService } from \"apps-module/app/entry-modules/news-search/services/search.service\";\r\nimport { QuerySearchParametersService } from \"apps-module/app/entry-modules/news-search/services/query-search-parameters.service\";\r\nimport { SearchForm } from \"apps-module/app/entry-modules/news-search/forms/search.form\";\r\nimport { FormSearchParametersModel } from \"apps-module/app/entry-modules/news-search/models/form-search-parameters.model\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/news-search/models/search-result-item.model\";\r\nimport { Pending } from \"apps-module/app/shared-library/decorators/pending.decorator\";\r\nimport { SearchResultModel } from \"apps-module/app/entry-modules/news-search/models/search-result.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: NewsSearchComponent.SELECTOR,\r\n templateUrl: \"./news-search.component.html\",\r\n providers: [ConfigurationService, FormSearchParametersService, SearchService, QuerySearchParametersService]\r\n})\r\nexport class NewsSearchComponent extends DestroyableMixin(LockMixin(EmptyInstance)) implements OnInit {\r\n\r\n public static SELECTOR: string = \"[pcg-ng-news-search]\";\r\n\r\n // TODO: is this decorator necessary?\r\n @Pending\r\n private _onSearch: Subscription;\r\n\r\n public configuration: SearchConfigurationModel;\r\n public searchForm: SearchForm;\r\n public results: Array = [];\r\n public totalPages: number = 1;\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n\r\n public constructor(\r\n private _domElement: ElementRef,\r\n private _browserWindowService: BrowserWindowService,\r\n private _configurationService: ConfigurationService,\r\n private _searchParametersFactory: FormSearchParametersService,\r\n private _searchService: SearchService,\r\n private _queryStringSetterService: QuerySearchParametersService\r\n ) { super(); }\r\n\r\n public ngOnInit(): void {\r\n this._configurationService.initialize(this._domElement);\r\n\r\n this.configuration = this._configurationService.getConfiguration();\r\n\r\n const queryString = this._browserWindowService.getQueryString();\r\n const searchParameters = this._searchParametersFactory.create(queryString, this.configuration);\r\n this.searchForm = SearchForm.createForm(searchParameters);\r\n\r\n merge(of(searchParameters), this.searchForm.onFormSubmitted)\r\n .pipe(\r\n filter(() => !this.isLocked),\r\n takeUntil(this.onDestroy)\r\n )\r\n .subscribe(searchParams => this.invokeSearch(searchParams));\r\n }\r\n\r\n private invokeSearch(formSearchParameters: FormSearchParametersModel): void {\r\n this.searchStatus = SearchStatus.Loading;\r\n this._queryStringSetterService.set(formSearchParameters);\r\n\r\n this._onSearch = this._searchService.search(formSearchParameters)\r\n .pipe(take(1))\r\n .subscribe({\r\n next: (response: SearchResultModel) => {\r\n const searchResult = {...response.results};\r\n\r\n this.totalPages = searchResult.totalPages ?? 1;\r\n this.results = [...searchResult.pageItems];\r\n this.searchStatus = SearchStatus.Success;\r\n },\r\n error: () => this.searchStatus = SearchStatus.Error\r\n });\r\n }\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/news-search/models/search-result-item.model\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-result-item]\",\r\n templateUrl: \"./result-item.component.html\",\r\n providers: []\r\n})\r\nexport class ResultItemComponent {\r\n\r\n @Input()\r\n public result: SearchResultItemModel = null;\r\n}\r\n","import { Component, Input } from \"@angular/core\";\r\nimport { SearchResultItemModel } from \"apps-module/app/entry-modules/news-search/models/search-result-item.model\";\r\nimport { SearchStatus } from \"apps-module/app/shared-library/enums/search-status.enum\";\r\n\r\n@Component({\r\n selector: \"[pcg-ng-search-results]\",\r\n templateUrl: \"./search-results.component.html\",\r\n providers: []\r\n})\r\nexport class SearchResultsComponent {\r\n\r\n @Input()\r\n public results: Array = [];\r\n\r\n public readonly statuses = SearchStatus;\r\n\r\n @Input()\r\n public searchStatus: SearchStatus = SearchStatus.Loading;\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { NewsSearchComponent } from \"apps-module/app/entry-modules/news-search/news-search.component\";\r\nimport { CommonComponentsModule } from \"apps-module/app/common-components/common-components.module\";\r\nimport { ResultItemComponent } from \"apps-module/app/entry-modules/news-search/components/search-results/result-item/result-item.component\";\r\nimport { SearchResultsComponent } from \"apps-module/app/entry-modules/news-search/components/search-results/search-results.component\";\r\n\r\n@NgModule({\r\n declarations: [\r\n NewsSearchComponent,\r\n ResultItemComponent,\r\n SearchResultsComponent\r\n ],\r\n exports: [NewsSearchComponent],\r\n imports: [\r\n CommonComponentsModule\r\n ]\r\n})\r\nexport class NewsSearchModule { }\r\n","import { Type } from \"@angular/core\";\r\nimport { ApplicationRef, NgModule } from \"@angular/core\";\r\nimport { BrowserModule } from \"@angular/platform-browser\";\r\nimport _get from \"lodash/get\";\r\nimport _flatten from \"lodash/flatten\";\r\nimport { VenuesSearchComponent } from \"apps-module/app/entry-modules/venues-search/venues-search.component\";\r\nimport { VenuesSearchModule } from \"apps-module/app/entry-modules/venues-search/venues-search.module\";\r\nimport { VacanciesSearchComponent } from \"apps-module/app/entry-modules/vacancies-search/vacancies-search.component\";\r\nimport { VacanciesSearchModule } from \"apps-module/app/entry-modules/vacancies-search/vacancies-search.module\";\r\nimport { ContentSearchModule } from \"apps-module/app/entry-modules/content-search/content-search.module\";\r\nimport { ContentSearchComponent } from \"apps-module/app/entry-modules/content-search/content-search.component\";\r\nimport { AssistantsProfileSearchComponent } from \"apps-module/app/entry-modules/assistants-profile-search/assistants-profile-search.component\";\r\nimport { AssistantsProfileSearchModule } from \"apps-module/app/entry-modules/assistants-profile-search/assistants-profile-search.module\";\r\nimport { EventSearchComponent } from \"apps-module/app/entry-modules/event-search/event-search.component\";\r\nimport { EventSearchModule } from \"apps-module/app/entry-modules/event-search/event-search.module\";\r\nimport { NewsSearchModule } from \"apps-module/app/entry-modules/news-search/news-search.module\";\r\nimport { NewsSearchComponent } from \"apps-module/app/entry-modules/news-search/news-search.component\";\r\n\r\nconst entryComponents: Array> = [\r\n VenuesSearchComponent,\r\n VacanciesSearchComponent,\r\n ContentSearchComponent,\r\n EventSearchComponent,\r\n AssistantsProfileSearchComponent,\r\n NewsSearchComponent\r\n];\r\n\r\n@NgModule({\r\n imports: [\r\n BrowserModule,\r\n VenuesSearchModule,\r\n VacanciesSearchModule,\r\n ContentSearchModule,\r\n EventSearchModule,\r\n AssistantsProfileSearchModule,\r\n NewsSearchModule\r\n ],\r\n entryComponents: entryComponents\r\n})\r\nexport class AppModule {\r\n public ngDoBootstrap(applicationRef: ApplicationRef): void {\r\n entryComponents\r\n .map(component => ({\r\n component: component,\r\n nodes: [...document.querySelectorAll( _get(component, \"SELECTOR\"))] as Array\r\n }))\r\n .forEach(relation => {\r\n relation.nodes.forEach(node => {\r\n applicationRef.bootstrap(relation.component, node);\r\n });\r\n });\r\n }\r\n}\r\n","import { platformBrowserDynamic } from \"@angular/platform-browser-dynamic\";\r\nimport { AppModule } from \"apps-module/app/app.module\";\r\n\r\nexport class ApplicationLoaderService {\r\n private static _instance: ApplicationLoaderService;\r\n\r\n public static instance(): ApplicationLoaderService {\r\n if (!this._instance) {\r\n this._instance = new ApplicationLoaderService();\r\n }\r\n\r\n return this._instance;\r\n }\r\n\r\n public boot(): void {\r\n platformBrowserDynamic().bootstrapModule(AppModule).catch(error => console.error(error));\r\n }\r\n}\r\n","/**\r\n * The script launches the application by bootstrapping its root module via \"ApplicationLoaderService\".\r\n * Because the application runs directly in the browser, \"ApplicationLoaderService\" imports the \"platformBrowserDynamic\" function.\r\n * It initializes the platform and then uses it to bootstrap \"AppModule\".\r\n */\r\n\r\nimport \"@angular/localize/init\";\r\nimport { enableProdMode } from \"@angular/core\";\r\n\r\nimport { ApplicationLoaderService } from \"apps-module/app/shared-library/services/environment/application-loader.service\";\r\n\r\nif (process.env.ENV === \"production\") {\r\n enableProdMode();\r\n}\r\n\r\nApplicationLoaderService.instance().boot();\r\n"],"names":["SearchStatus","DestroyableMixin","BaseClass","ngOnDestroy","this","destroy","destroyMember","value","Subscription","closed","unsubscribe","EventEmitter","Subject","complete","onDestroy","next","properties","Object","getOwnPropertyDescriptors","propDescriptor","key","get","Error","BaseDestroyableMixin","LockMixin","_isLocked","lock","unlock","message","name","DEFAULT_DATA_ATTRIBUTE_NAME","_config","getConfiguration","initialize","domElement","domAttribute","json","nativeElement","dataset","ConfigurationError","JSON","parse","Injectable","ConfigurationService","window","onpopstate","reloadPage","getQueryString","queryString","location","search","length","slice","setQueryString","currentUrl","updatedUrl","protocol","host","pathname","join","href","_initialUrl","history","pushState","replaceState","reload","providedIn","BrowserWindowService","QueryStringSerializationService","serialize","data","serializeInternal","prefix","keys","queryParams","propertyName","propertyPath","propertyValue","queryParam","PROPERTY_NAMES_DELIMITER","encodeURIComponent","push","filter","split","deserialize","resultObject","spaceFormattedQueryString","replace","RegExp","pair","decodeURIComponent","setPropertyValue","error","propertyAlias","nestedObject","hasOwnProperty","isNaN","parseInt","shortKey","String","substring","defaultValue","parseMany","values","map","x","NumericUtils","_serializationService","create","configuration","rawValues","pageId","pageNumber","searchText","minCapacity","maxCapacity","facilities","FormSearchParametersService","_http","url","params","post","body","ApiRequestDispatcherService","_requestDispatcher","searchParams","SearchService","_browserWindowService","set","searchParameters","QuerySearchParametersService","formInstance","initialFormState","_onFormSubmitted","onFormSubmitted","pipe","takeUntil","subscribe","model","patchValue","emitEvent","asObservable","getFormControl","alias","submit","partialFormModel","isFormValid","getFormModel","getValue","valid","initialSearchParams","createForm","SearchForm","capacity","searchByPageNumber","searchByFilters","searchByText","BaseObservableForm","Pending","target","propertyKey","Reflect","getMetadata","descriptor","getOwnPropertyDescriptor","enumerable","configurable","originalGet","originalSet","val","self","add","DateFilterValues","_domElement","_configurationService","_searchParametersFactory","_searchService","_queryStringSetterService","results","totalPages","totalCount","searchStatus","Loading","VenuesSearchComponent","ngOnInit","searchForm","merge","of","isLocked","invokeSearch","formSearchParameters","_onSearch","take","response","searchResult","totalItems","pageItems","Success","SELECTOR","Component","selector","template","providers","ElementRef","NgModule","imports","declarations","exports","SharedLibraryModule","control","GAP","onPageClick","setPage","setValue","emit","getMiddleNumbers","start","end","numbers","Array","getFullNumbers","Input","Output","PaginationComponent","_disabled","_onChange","_onTouched","_value","registerOnChange","fn","registerOnTouched","setDisabledState","disabled","writeValue","writeNewValue","undefined","api","id","suggestionsHided","searchTextControl","useSuggestions","apiUrl","searchPageUrl","homePageId","onSubmit","valueChanges","debounceTime","setSuggestions","SearchBarComponent","onFocusIn","onFocusOut","setTimeout","clearSuggestions","recommendations","forEach","element","suggestionsContainer","innerHTML","suggestions","showMoreCount","onInputClick","ViewChild","provide","useExisting","forwardRef","multi","label","DropdownFilterComponent","originalControl","isCalendarOpened","parseValue","year","month","toString","padStart","day","toggleCalendarPopup","_ngbDatePickerElementRef","toggle","toggleCalendarPopup_2","close","open","clear","picker","dateParts","read","static","DatePickerComponent","SpinnerComponent","CommonComponentsModule","min","max","CapacityFilterComponent","checked","onToggle","CheckboxComponent","onSelect","includes","option","splice","indexOf","FacilitiesFilterComponent","result","ResultItemComponent","statuses","SearchResultsComponent","VenuesSearchModule","jobType","fromDate","toDate","VacanciesSearchComponent","VacanciesSearchModule","siteSections","categories","dateFilterType","All","searchByDates","ContentSearchComponent","searchFilterToggle_onClick","_searchFilterToggleElementRef","classList","_searchFilterContentElementRef","extraText","extraLinkUrl","extraLinkText","extraLinkTarget","SearchMessageComponent","customFromDateControl","customToDateControl","radioControl","fromDateControl","toDateControl","onValueChange","setDateControls","Custom","now","Date","format","locale","ThisMonth","getFullYear","getMonth","LastMonth","Last12Month","getDay","reset","DateFilterComponent","selected","options","SearchFilterComponent","ContentSearchModule","stringDrivingLicence","drivingLicence","Boolean","gender","workingRelationship","AssistantsProfileSearchComponent","BooleanDropdownFilterComponent","AssistantsProfileSearchModule","EventSearchComponent","EventSearchModule","NewsSearchComponent","NewsSearchModule","entryComponents","ngDoBootstrap","applicationRef","component","nodes","document","querySelectorAll","relation","node","bootstrap","AppModule","instance","_instance","ApplicationLoaderService","boot","bootstrapModule","catch","console","enableProdMode"],"sourceRoot":""}