{"version":3,"file":"arlas-wui-toolkit.mjs","sources":["../../../projects/arlas-toolkit/src/lib/components/admonition-card/admonition-card.component.ts","../../../projects/arlas-toolkit/src/lib/components/admonition-card/admonition-card.component.html","../../../projects/arlas-toolkit/src/lib/services/collaborative-search/arlas.collaborative-search.service.ts","../../../projects/arlas-toolkit/src/lib/services/settings/arlas.settings.service.ts","../../../projects/arlas-toolkit/src/lib/services/process/process.service.ts","../../../projects/arlas-toolkit/src/lib/services/theme.service.ts","../../../projects/arlas-toolkit/src/lib/tools/process.interface.ts","../../../projects/arlas-toolkit/src/lib/components/aias/aias-process.ts","../../../projects/arlas-toolkit/src/lib/components/aias/aias-result/aias-result.component.ts","../../../projects/arlas-toolkit/src/lib/components/aias/aias-result/aias-result.component.html","../../../projects/arlas-toolkit/src/lib/components/aias/aias-download/aias-download.component.ts","../../../projects/arlas-toolkit/src/lib/components/aias/aias-download/aias-download.component.html","../../../projects/arlas-toolkit/src/lib/components/aias/aias-enrich/aias-enrich.component.ts","../../../projects/arlas-toolkit/src/lib/components/aias/aias-enrich/aias-enrich.component.html","../../../projects/arlas-toolkit/src/lib/pipes/get-contributor.pipe.ts","../../../projects/arlas-toolkit/src/lib/tools/utils.ts","../../../projects/arlas-toolkit/src/lib/services/arlas-authentification/arlas-authentification.service.ts","../../../projects/arlas-toolkit/src/lib/services/arlas-iam/arlas-iam.service.ts","../../../projects/arlas-toolkit/src/lib/services/arlas.task.service.ts","../../../projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts","../../../projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts","../../../projects/arlas-toolkit/src/lib/components/denied-access-dialog/denied-access-dialog.component.ts","../../../projects/arlas-toolkit/src/lib/components/denied-access-dialog/denied-access-dialog.component.html","../../../projects/arlas-toolkit/src/lib/components/reconnect-dialog/reconnect-dialog.component.ts","../../../projects/arlas-toolkit/src/lib/components/reconnect-dialog/reconnect-dialog.component.html","../../../projects/arlas-toolkit/src/lib/tools/errors/error.ts","../../../projects/arlas-toolkit/src/lib/tools/errors/authorisation-error.ts","../../../projects/arlas-toolkit/src/lib/tools/errors/authorisation-on-action-error.ts","../../../projects/arlas-toolkit/src/lib/tools/errors/backend-error.ts","../../../projects/arlas-toolkit/src/lib/tools/errors/invalid-dashboard-error.ts","../../../projects/arlas-toolkit/src/lib/tools/errors/settings-error.ts","../../../projects/arlas-toolkit/src/lib/services/error/error.service.ts","../../../projects/arlas-toolkit/src/lib/services/interceptor/fetch-interceptor.service.ts","../../../projects/arlas-toolkit/src/lib/services/permission/permission.service.ts","../../../projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts","../../../projects/arlas-toolkit/src/lib/services/startup/contributorBuilder.ts","../../../projects/arlas-toolkit/src/lib/services/startup/startup.service.ts","../../../projects/arlas-toolkit/src/lib/services/analytics/analytics.service.ts","../../../projects/arlas-toolkit/src/lib/components/progress-spinner/progress-spinner.component.ts","../../../projects/arlas-toolkit/src/lib/components/progress-spinner/progress-spinner.component.html","../../../projects/arlas-toolkit/src/lib/services/collection/arlas-collection.service.ts","../../../projects/arlas-toolkit/src/lib/services/export-csv/export-csv.service.ts","../../../projects/arlas-toolkit/src/lib/components/calendar-timeline-tooltip-overlay/calendar-timeline-tooltip-overlay.component.ts","../../../projects/arlas-toolkit/src/lib/components/calendar-timeline-tooltip-overlay/calendar-timeline-tooltip-overlay.component.html","../../../projects/arlas-toolkit/src/lib/components/widget-tooltip/widget-tooltip.component.ts","../../../projects/arlas-toolkit/src/lib/components/widget-tooltip/widget-tooltip.component.html","../../../projects/arlas-toolkit/src/lib/components/donut-tooltip-overlay/donut-tooltip-overlay.component.ts","../../../projects/arlas-toolkit/src/lib/components/donut-tooltip-overlay/donut-tooltip-overlay.component.html","../../../projects/arlas-toolkit/src/lib/components/histogram-tooltip-overlay/histogram-tooltip-overlay.component.ts","../../../projects/arlas-toolkit/src/lib/components/histogram-tooltip-overlay/histogram-tooltip-overlay.component.html","../../../projects/arlas-toolkit/src/lib/components/powerbar-tooltip-overlay/powerbar-tooltip-overlay.component.ts","../../../projects/arlas-toolkit/src/lib/components/powerbar-tooltip-overlay/powerbar-tooltip-overlay.component.html","../../../projects/arlas-toolkit/src/lib/services/overlays/overlay.service.ts","../../../projects/arlas-toolkit/src/lib/services/widget/widget.notifier.service.ts","../../../projects/arlas-toolkit/src/lib/components/filter-shortcut/filter-shortcut.utils.ts","../../../projects/arlas-toolkit/src/lib/components/histogram-widget/utils.ts","../../../projects/arlas-toolkit/src/lib/components/histogram-widget/histogram-widget.component.ts","../../../projects/arlas-toolkit/src/lib/components/histogram-widget/histogram-widget.component.html","../../../projects/arlas-toolkit/src/lib/components/widget/contributor-pipes/as-histogram-contributor-pipe.ts","../../../projects/arlas-toolkit/src/lib/components/widget/contributor-pipes/as-list-contributor-pipe.ts","../../../projects/arlas-toolkit/src/lib/components/widget/contributor-pipes/as-metric-contributor-pipe.ts","../../../projects/arlas-toolkit/src/lib/components/widget/contributor-pipes/as-metrics-table-contributor-pipe.ts","../../../projects/arlas-toolkit/src/lib/components/widget/contributor-pipes/as-swimlane-contributor-pipe.ts","../../../projects/arlas-toolkit/src/lib/components/widget/contributor-pipes/as-tree-contributor-pipe.ts","../../../projects/arlas-toolkit/src/lib/components/widget/widget.component.ts","../../../projects/arlas-toolkit/src/lib/components/widget/widget.component.html","../../../projects/arlas-toolkit/src/lib/components/analytics/analytics-board/analytics-board.component.ts","../../../projects/arlas-toolkit/src/lib/components/analytics/analytics-board/analytics-board.component.html","../../../projects/arlas-toolkit/src/lib/components/analytics/analytics-menu/analytics-menu.component.ts","../../../projects/arlas-toolkit/src/lib/components/analytics/analytics-menu/analytics-menu.component.html","../../../projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts","../../../projects/arlas-toolkit/src/lib/services/aoi/aoiDatabase.ts","../../../projects/arlas-toolkit/src/lib/services/aoi/aoi.service.ts","../../../projects/arlas-toolkit/src/lib/tools/arlasDataSource.ts","../../../projects/arlas-toolkit/src/lib/components/aoi/aoi.component.ts","../../../projects/arlas-toolkit/src/lib/components/aoi/aoi.component.html","../../../projects/arlas-toolkit/src/lib/services/bookmark/bookmarkLocalDatabase.ts","../../../projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts","../../../projects/arlas-toolkit/src/lib/services/bookmark/bookmarkPersistenceDatabase.ts","../../../projects/arlas-toolkit/src/lib/services/bookmark/model.ts","../../../projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts","../../../projects/arlas-toolkit/src/lib/components/bookmark/bookmark-add-dialog.component.ts","../../../projects/arlas-toolkit/src/lib/components/bookmark/bookmark-add-dialog.component.html","../../../projects/arlas-toolkit/src/lib/components/bookmark/bookmark.component.ts","../../../projects/arlas-toolkit/src/lib/components/bookmark/bookmark.component.html","../../../projects/arlas-toolkit/src/lib/components/bookmark-menu/bookmark-menu.component.ts","../../../projects/arlas-toolkit/src/lib/components/bookmark-menu/bookmark-menu.component.html","../../../projects/arlas-toolkit/src/lib/components/calendar-timeline/calendar-timeline.component.ts","../../../projects/arlas-toolkit/src/lib/components/calendar-timeline/calendar-timeline.component.html","../../../projects/arlas-toolkit/src/lib/components/change-password/change-password.component.ts","../../../projects/arlas-toolkit/src/lib/components/change-password/change-password.component.html","../../../projects/arlas-toolkit/src/lib/components/config-manager/share-config/share-config.component.ts","../../../projects/arlas-toolkit/src/lib/components/config-manager/share-config/share-config.component.html","../../../projects/arlas-toolkit/src/lib/components/config-manager/action-modal/action-modal.component.ts","../../../projects/arlas-toolkit/src/lib/components/config-manager/action-modal/action-modal.component.html","../../../projects/arlas-toolkit/src/lib/tools/consts.ts","../../../projects/arlas-toolkit/src/lib/components/config-manager/config-menu/config-menu.component.ts","../../../projects/arlas-toolkit/src/lib/components/config-manager/config-menu/config-menu.component.html","../../../projects/arlas-toolkit/src/lib/components/confirm-modal/confirm-modal.component.ts","../../../projects/arlas-toolkit/src/lib/components/confirm-modal/confirm-modal.component.html","../../../projects/arlas-toolkit/src/lib/components/share/model/ArlasSearchField.ts","../../../projects/arlas-toolkit/src/lib/components/download/download.component.ts","../../../projects/arlas-toolkit/src/lib/components/download/download-dialog.component.html","../../../projects/arlas-toolkit/src/lib/services/extend/extendLocalDatabase.ts","../../../projects/arlas-toolkit/src/lib/services/extend/extendPersistenceDatabase.ts","../../../projects/arlas-toolkit/src/lib/services/extend/extend.service.ts","../../../projects/arlas-toolkit/src/lib/components/extend/extend.component.ts","../../../projects/arlas-toolkit/src/lib/components/extend/extend.component.html","../../../projects/arlas-toolkit/src/lib/components/filter-shortcut/chip/chip.component.ts","../../../projects/arlas-toolkit/src/lib/components/filter-shortcut/chip/chip.component.html","../../../projects/arlas-toolkit/src/lib/components/filter-shortcut/filters-handler/filters-handler.component.ts","../../../projects/arlas-toolkit/src/lib/components/filter-shortcut/filters-handler/filters-handler.component.html","../../../projects/arlas-toolkit/src/lib/components/filter-shortcut/filter-shortcut.component.ts","../../../projects/arlas-toolkit/src/lib/components/filter-shortcut/filter-shortcut.component.html","../../../projects/arlas-toolkit/src/lib/components/filters/filters.component.ts","../../../projects/arlas-toolkit/src/lib/components/filters/filters.component.html","../../../projects/arlas-toolkit/src/lib/components/forgot/forgot.component.ts","../../../projects/arlas-toolkit/src/lib/components/forgot/forgot.component.html","../../../projects/arlas-toolkit/src/lib/components/language-switcher/language-switcher.component.ts","../../../projects/arlas-toolkit/src/lib/components/language-switcher/language-switcher.component.html","../../../projects/arlas-toolkit/src/lib/components/login/login.component.ts","../../../projects/arlas-toolkit/src/lib/components/login/login.component.html","../../../projects/arlas-toolkit/src/lib/components/permissions-creator/permissions-creator-dialog/permissions-creator-dialog.component.ts","../../../projects/arlas-toolkit/src/lib/components/permissions-creator/permissions-creator-dialog/permissions-creator-dialog.component.html","../../../projects/arlas-toolkit/src/lib/components/permissions-creator/permissions-creator.component.ts","../../../projects/arlas-toolkit/src/lib/components/permissions-creator/permissions-creator.component.html","../../../projects/arlas-toolkit/src/lib/components/register/register.component.ts","../../../projects/arlas-toolkit/src/lib/components/register/register.component.html","../../../projects/arlas-toolkit/src/lib/components/reset/reset.component.ts","../../../projects/arlas-toolkit/src/lib/components/reset/reset.component.html","../../../projects/arlas-toolkit/src/lib/components/search/search.component.ts","../../../projects/arlas-toolkit/src/lib/components/search/search.component.html","../../../projects/arlas-toolkit/src/lib/components/search/search-dialog.component.html","../../../projects/arlas-toolkit/src/lib/components/share/exclude-type.pipe.ts","../../../projects/arlas-toolkit/src/lib/components/share/share.component.ts","../../../projects/arlas-toolkit/src/lib/components/share/share-dialog.component.html","../../../projects/arlas-toolkit/src/lib/services/tag/tag.service.ts","../../../projects/arlas-toolkit/src/lib/components/tag/tag.component.ts","../../../projects/arlas-toolkit/src/lib/components/tag/tag.component.html","../../../projects/arlas-toolkit/src/lib/components/tag/tag-dialog.component.html","../../../projects/arlas-toolkit/src/lib/components/tag/tag-management-dialog.component.html","../../../projects/arlas-toolkit/src/lib/components/timeline/date-picker/ArlasTranslateIntl.ts","../../../projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-time-formats.token.ts","../../../projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts","../../../projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.html","../../../projects/arlas-toolkit/src/lib/pipes/get-time-label.pipe.ts","../../../projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts","../../../projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.html","../../../projects/arlas-toolkit/src/lib/components/timeline/collection-chip-color-pipe.ts","../../../projects/arlas-toolkit/src/lib/components/timeline/timeline/timeline.component.ts","../../../projects/arlas-toolkit/src/lib/components/timeline/timeline/timeline.component.html","../../../projects/arlas-toolkit/src/lib/components/top-menu/about/about.component.ts","../../../projects/arlas-toolkit/src/lib/components/top-menu/about/about-dialog.component.html","../../../projects/arlas-toolkit/src/lib/components/top-menu/links/link/link.component.ts","../../../projects/arlas-toolkit/src/lib/components/top-menu/links/link/link.component.html","../../../projects/arlas-toolkit/src/lib/components/top-menu/links/links.component.ts","../../../projects/arlas-toolkit/src/lib/components/top-menu/links/links.component.html","../../../projects/arlas-toolkit/src/lib/components/user-infos/user-infos.component.ts","../../../projects/arlas-toolkit/src/lib/components/user-infos/user-infos.component.html","../../../projects/arlas-toolkit/src/lib/components/top-menu/top-menu.component.ts","../../../projects/arlas-toolkit/src/lib/components/top-menu/top-menu.component.html","../../../projects/arlas-toolkit/src/lib/components/verify/verify.component.ts","../../../projects/arlas-toolkit/src/lib/components/verify/verify.component.html","../../../projects/arlas-toolkit/src/lib/services/arlas-iam/auth-guard-iam.service.ts","../../../projects/arlas-toolkit/src/lib/services/bookmark/bookmarkDataSource.ts","../../../projects/arlas-toolkit/src/lib/services/configuration-descriptor/configurationDescriptor.service.ts","../../../projects/arlas-toolkit/src/lib/services/map-settings/map-settings.service.ts","../../../projects/arlas-toolkit/src/lib/services/map/map.service.ts","../../../projects/arlas-toolkit/src/lib/services/walkthrough/walkthrough.utils.ts","../../../projects/arlas-toolkit/src/lib/services/walkthrough/walkthrough.service.ts","../../../projects/arlas-toolkit/src/lib/services/walkthrough/walkthrough.module.ts","../../../projects/arlas-toolkit/src/lib/tools/color-generator-loader.ts","../../../projects/arlas-toolkit/src/lib/shared.module.ts","../../../projects/arlas-toolkit/src/lib/tagger.module.ts","../../../projects/arlas-toolkit/src/lib/toolkit.component.ts","../../../projects/arlas-toolkit/src/lib/toolkit-routing.module.ts","../../../projects/arlas-toolkit/src/lib/tools/paginatori18n.ts","../../../projects/arlas-toolkit/src/lib/toolkit.module.ts","../../../projects/arlas-toolkit/src/lib/tools/errors/dashboard-error.ts","../../../projects/arlas-toolkit/src/lib/tools/jwt.interceptor.ts","../../../projects/arlas-toolkit/src/public-api.ts","../../../projects/arlas-toolkit/src/arlas-wui-toolkit.ts"],"sourcesContent":["/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, input } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\n\n@Component({\n  selector: 'arlas-admonition-card',\n  imports: [\n    TranslatePipe\n  ],\n  templateUrl: './admonition-card.component.html',\n  styleUrl: './admonition-card.component.scss'\n})\nexport class AdmonitionCardComponent {\n  public title = input<string>();\n\n}\n","<div class=\"admonition note\">\n  <p class=\"admonition-title\">{{ title() | translate}}</p>\n  <p class=\"admonition-content\"><ng-content></ng-content></p>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { Injectable } from '@angular/core';\nimport { Filter } from 'arlas-api';\nimport { MetricsTableContributor, TreeContributor } from 'arlas-web-contributors';\nimport { Collaboration, CollaborativesearchService } from 'arlas-web-core';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ArlasCollaborativesearchService extends CollaborativesearchService {\n  public endOfUrlCollaboration = false;\n\n  /**\n   * @param filter The filter query parameter\n   * @param changeOperator Whether to change the operator of the filters applied for TreeContributors\n   * @returns A dictionnary of the current collaborations\n   */\n  public dataModelBuilder(filter: string, changeOperator = false) {\n    const dataModel = JSON.parse(filter) as Record<string, Collaboration>;\n    const defaultCollection = this.defaultCollection;\n    const registry = this.registry;\n    /** transform \"filters\" object to Map */\n    Object.keys(dataModel).forEach(key => {\n      const collab = dataModel['' + key];\n      const contributor = registry.get(key);\n      if (!!collab && !!collab.filters) {\n        collab.filters = new Map(Object.entries(collab.filters));\n      } else if (!!collab && !collab.filters && !!(collab as any).filter) {\n        /** retrocompatibility code to transform an pre-18 collaboration structure to 18 one */\n        collab.filters = new Map();\n        collab.filters.set(defaultCollection, [{...(collab as any).filter}]);\n        delete (collab as any).filter;\n      }\n      if (contributor && contributor instanceof TreeContributor && changeOperator) {\n        collab.filters.forEach((filters: any[], collection: string) => {\n          const exp = filters[0].f[0][0];\n          const op = exp.op;\n          const treecontributor = contributor;\n          if (op !== treecontributor.getFilterOperator()) {\n            if (treecontributor.allowOperatorChange) {\n              treecontributor.setFilterOperator(op, true);\n            } else {\n              delete dataModel['' + key];\n              this.collaborations.delete(key);\n            }\n          }\n        });\n      }\n      if (contributor && contributor instanceof MetricsTableContributor && changeOperator) {\n        collab.filters.forEach((filters: any[], collection: string) => {\n          const exp = filters[0].f[0][0];\n          const op = exp.op;\n          const metrictablecontributor = contributor;\n          if (op !== metrictablecontributor.getFilterOperator()) {\n            metrictablecontributor.setFilterOperator(op, true);\n\n          }\n        });\n      }\n    });\n    return dataModel;\n  }\n\n  public getCollectionsFromFilters(dataModel: Record<string, Collaboration>): Set<string> {\n    const collections = new Set<string>();\n    Object.keys(dataModel).forEach(k => {\n      const collab = dataModel[k];\n      if (collab?.filters) {\n        const filters = collab.filters as Map<string, any>;\n        Array.from(filters.keys()).forEach(c => collections.add(c));\n      }\n    });\n    return collections;\n  }\n\n  public getFilters(collection: string): Array<Filter> {\n    const filters: Filter[] = [];\n    Array.from(this.collaborations.values()).forEach(c => {\n      if (c.filters.get(collection)) {\n        const collectionFilters = c.filters.get(collection) ?? [];\n        filters.push(...collectionFilters);\n      }\n    });\n\n    return filters;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {DrawTheme} from 'arlas-map';\nimport {AuthentSetting, GeocodingSetting} from '../../tools/utils';\nimport {PermissionSetting} from '../permission/permission.service';\nimport {PersistenceSetting} from '../persistence/persistence.service';\nimport {ArlasSettings, LinkSettings, ProcessSettings, ResultlistSettings} from '../startup/startup.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ArlasSettingsService {\n  public settings!: ArlasSettings;\n\n  public setSettings(settings: ArlasSettings): void {\n    this.settings = settings;\n  }\n\n  public getSettings(): ArlasSettings {\n    return this.settings;\n  }\n\n  public getPersistenceSettings(): PersistenceSetting | undefined {\n    return !!this.settings && !!this.settings.persistence ? this.settings.persistence : undefined;\n  }\n\n  public getPermissionSettings(): PermissionSetting | undefined {\n    return !!this.settings && !!this.settings.permission ? this.settings.permission : undefined;\n  }\n\n  public getGeocodingSettings(): GeocodingSetting | undefined {\n    return !!this.settings && !!this.settings.geocoding ? this.settings.geocoding : undefined;\n  }\n\n  public getArlasWuiUrl(): string | undefined {\n    return !!this.settings && !!this.settings.arlas_wui_url ? this.settings.arlas_wui_url : undefined;\n  }\n\n  public getArlasBuilderUrl(): string | undefined {\n    return !!this.settings && !!this.settings.arlas_builder_url ? this.settings.arlas_builder_url : undefined;\n  }\n\n  public getArlasHubUrl(): string | undefined {\n    return !!this.settings && !!this.settings.arlas_hub_url ? this.settings.arlas_hub_url : undefined;\n  }\n\n  public getArlasIAMWuiUrl(): string | undefined {\n    return !!this.settings && !!this.settings.arlas_iam_wui_url ? this.settings.arlas_iam_wui_url : undefined;\n  }\n\n  public getLinksSettings(): LinkSettings[] {\n    return !!this.settings && !!this.settings.links ? this.settings.links : [];\n  }\n\n  public isDarkThemeEnabled(): boolean {\n    return !!this.settings && !!this.settings.dark_theme_enabled;\n  }\n\n  public getTicketingKey(): string | undefined {\n    return !!this.settings && !!this.settings.ticketing_key && this.settings.ticketing_key !== '' ? this.settings.ticketing_key : undefined;\n  }\n\n  public getHistogramMaxBucket(): number {\n    return !!this.settings && !!this.settings.histogram && !!this.settings.histogram.max_buckets ? this.settings.histogram.max_buckets : 200;\n  }\n\n  public getResultlistSettings(): ResultlistSettings | undefined {\n    return !!this.settings && !!this.settings.resultlist ? this.settings.resultlist : undefined;\n  }\n\n  public getHistogramNbBucketAtExport(): number {\n    return !!this.settings && !!this.settings.histogram && !!this.settings.histogram.export_nb_buckets ?\n      this.settings.histogram.export_nb_buckets : 1000;\n  }\n\n  public getAuthentSettings(): AuthentSetting | undefined {\n    return !!this.settings && !!this.settings.authentication ? this.settings.authentication : undefined;\n  }\n\n  public getProcessSettings(name: string): ProcessSettings | undefined {\n    return !!this.settings && !!this.settings.processes ? this.settings.processes.find(p => p.name === name) : undefined;\n  }\n\n  public getDrawTheme(): DrawTheme {\n    return this.settings?.drawTheme ?? {};\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Expression, Filter, Search } from 'arlas-api';\nimport { projType } from 'arlas-web-core';\nimport { map, Observable, of } from 'rxjs';\nimport { Process, ProcessFieldOption, ProcessInputs, ProcessOutput } from '../../tools/process.interface';\nimport { GetOptions } from '../../tools/utils';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\n\nexport interface ValidatedProcessFieldOption extends ProcessFieldOption {\n  valid$: Observable<boolean>;\n}\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ProcessService {\n  private readonly processInputs = new Map<string, ProcessInputs | undefined>();\n  private options: GetOptions = {};\n\n  public constructor(\n    private readonly http: HttpClient,\n    private readonly arlasSettingsService: ArlasSettingsService,\n    private readonly collaborativeSearchService: ArlasCollaborativesearchService\n  ) { }\n\n  public setOptions(options: GetOptions): void {\n    this.options = options;\n  }\n\n  private getProcessSettings(processName: string) {\n    const settings = this.arlasSettingsService.getProcessSettings(processName);\n    if (settings) {\n      return settings;\n    }\n\n    throw new Error(`[ARLAS][PROCESS] No settings were found for process ${processName}`);\n  }\n\n  /**\n   *\n   * @param ids List of products ids\n   * @param payload Values of the dynamic form\n   * @param collection Collection of selectied items\n   */\n  public process(processName: string, ids: string[], payload: any, collection: string): Observable<ProcessOutput> {\n    const requests: any[] = [];\n    ids.forEach(id => {\n      requests.push({ collection, item_id: id });\n    });\n    const data = {\n      inputs: {\n        requests\n      }\n    };\n    data.inputs = Object.assign(data.inputs, payload);\n\n    return this.http.post(\n      this.getProcessSettings(processName).url, data,\n      Object.assign(this.options, { responseType: 'text' })\n    )\n      .pipe(map(\n        p => {\n          const processOutput: ProcessOutput = JSON.parse(p as any);\n          return processOutput;\n        }\n      ));\n  }\n\n  public check(processName: string): Observable<any> {\n    return this.http.get(this.getProcessSettings(processName).check_url, this.options);\n  }\n\n  public getProcessInputs(process: string): ProcessInputs | undefined {\n    return this.processInputs.get(process);\n  }\n\n  public setProcessInputs(name: string, process: ProcessInputs | undefined): void {\n    this.processInputs.set(name, process);\n  }\n\n  public load(processName: string): Observable<Process> {\n    return this.http.get(\n      this.getProcessSettings(processName).settings.url,\n      Object.assign(this.options, { responseType: 'text' })\n    )\n      .pipe(\n        map(c => {\n          const process: Process = JSON.parse(c as any);\n          this.setProcessInputs(processName, process.inputs);\n          return process;\n        })\n      );\n  }\n\n  public getJobStatus(processName: string, jobId: string): Observable<ProcessOutput> {\n    return this.http.get(\n      this.getProcessSettings(processName).status.url + '/' + jobId,\n      Object.assign(this.options, { responseType: 'text' })\n    )\n      .pipe(map(\n        p => {\n          const processOutput: ProcessOutput = JSON.parse(p as any);\n          return processOutput;\n        }\n      ));\n  }\n\n  /**\n   * Parses the inputs of a process to determine which options are valid for the selection of items\n   * @param idFieldName Path to the id field\n   * @param itemsId List of item ids\n   * @param collection Name of the collection\n   * @param processName Name of the process\n   * @returns For each configured form field in the inputs, the validated options\n   */\n  public getValidOptions(idFieldName: string, itemsId: string[], collection: string, processName: string) {\n    const inputs = this.processInputs.get(processName);\n    const formOptions = new Map<string, ValidatedProcessFieldOption[]>();\n\n    if (inputs) {\n      const idMatchExpression: Expression = {\n        field: idFieldName,\n        op: Expression.OpEnum.Eq,\n        value: itemsId.join(',')\n      };\n\n      Object.entries(inputs).forEach(e => {\n        const [formField, input] = e;\n\n        const parsedOptions = new Array<ValidatedProcessFieldOption>();\n        if (input.schema.enum) {\n          for (const option of input.schema.enum) {\n            if (typeof option !== 'string') {\n              if (option.if) {\n                const search: Search = {\n                  form: { pretty: false, flat: false },\n                  projection: {\n                    includes: [idFieldName, ...option.if.map(opt => opt.field)].join(',')\n                  }\n                };\n\n                // Flatten all the filters to act as and\n                const filter: Filter = {\n                  f: [[idMatchExpression], ...option.if.map(e => [e])]\n                };\n\n                const optionValid$ = this.collaborativeSearchService\n                  .resolveHits(\n                    [projType.search, search],\n                    this.collaborativeSearchService.collaborations,\n                    collection,\n                    undefined,\n                    filter,\n                    false)\n                  .pipe(map(data => data.hits?.length === itemsId.length));\n\n                parsedOptions.push({ ...option, valid$: optionValid$ });\n              } else {\n                parsedOptions.push({ ...option, valid$: of(true) });\n              }\n            } else {\n              parsedOptions.push({ label: option, value: option, valid$: of(true) });\n            }\n          }\n        }\n\n        formOptions.set(formField, parsedOptions);\n      });\n    }\n\n    return formOptions;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { inject, Injectable, signal } from '@angular/core';\nimport { ArlasSettingsService } from './settings/arlas.settings.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ThemeService {\n  private readonly darkMode = signal(false);\n  private readonly THEME_KEY = 'dark-theme-enabled';\n  private readonly settingsService = inject(ArlasSettingsService);\n\n  public applyThemePreference() {\n    // No dark mode enabled.\n    if(!this.settingsService.isDarkThemeEnabled()){\n      return;\n    }\n\n    const saved = localStorage.getItem(this.THEME_KEY);\n    this.darkMode.set(saved === 'true');\n    if (this.darkMode()) {\n      document.body.classList.add('dark-theme');\n    }\n    return this;\n  }\n\n  /**\n   * Toggle theme between dark and light mode\n   * save the current choice in localstorage\n   */\n  public toggleThemeMode() {\n    const body = document.body;\n\n    this.darkMode.set(!this.darkMode());\n    localStorage.setItem(this.THEME_KEY, this.darkMode().toString());\n\n    if (this.darkMode() && !body.classList.contains('dark-theme')) {\n      body.classList.add('dark-theme');\n    } else {\n      body.classList.remove('dark-theme');\n    }\n  }\n\n  public isDarkMode() {\n    return this.darkMode();\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Expression } from 'arlas-api';\n\nexport interface Process {\n  id?: string;\n  version?: string;\n  title?: string;\n  description?: string;\n  inputs?: ProcessInputs;\n  additionalParameters?: {\n    parameters: any[];\n  };\n}\n\nexport interface ProcessInputs {\n  [key: string]: ProcessInput;\n}\n\n/** Options parsed from the configured inputs of a process */\nexport interface ProcessFieldOption {\n  label: string;\n  value: string;\n}\n\nexport interface ProcessConditionalValue extends ProcessFieldOption {\n  if?: Expression[];\n}\n\nexport interface ProcessInput {\n  schema: {\n    type: string;\n    enum?: string[] | ProcessConditionalValue[];\n    format?: string;\n    items?: {\n      type: string;\n      enum?: string[];\n    };\n    required?: boolean;\n  };\n}\n\nexport interface ProcessOutput {\n  processID: 'download' | 'ingest' | 'directory_ingest' | 'enrich' | 'dc3build';\n  type: string;\n  jobID: string;\n  status: ProcessStatus;\n  message: string;\n  created: number;\n  started: number;\n  finished: number;\n  updated: number;\n  progress: number;\n  links: any;\n  resourceID: string;\n}\n\nexport enum ProcessStatus {\n  accepted = 'accepted',\n  running = 'running',\n  successful = 'successful',\n  failed = 'failed',\n  dismissed = 'dismissed'\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { signal, WritableSignal } from '@angular/core';\nimport { DEFAULT_TASK_RETRIEVAL_INTERVAL } from 'arlas-web-components';\nimport { finalize, Subject, Subscription, takeUntil, timer } from 'rxjs';\nimport { ProcessService } from '../../services/process/process.service';\nimport { ProcessFieldOption, ProcessOutput, ProcessStatus } from '../../tools/process.interface';\n\n/** Base data communicated to an AIAS process dialog window */\nexport interface AiasProcessDialogData {\n  /** Number of items to process */\n  nbProducts: number;\n  /** Name of the field containing the id */\n  idFieldName: string;\n  /** Ids of the items to process */\n  ids: string[];\n  /** Name of the collection of items */\n  collection: string;\n}\n\n/** Data for the AIAS Download */\nexport interface AiasDownloadDialogData extends AiasProcessDialogData {\n  wktAoi: string | null;\n}\n\n/** Data for the AIAS Enrich */\nexport type AiasEnrichDialogData = AiasProcessDialogData;\n\nexport abstract class AiasProcess {\n  public processStarted = false;\n  public isProcessing = false;\n  public hasError = false;\n\n  public statusSub!: Subscription;\n  public unsubscribeStatus = new Subject<void>();\n  public statusResult: ProcessOutput | null = null;\n\n  /** Options for each configured form control in the process inputs */\n  public options: Record<string, WritableSignal<ProcessFieldOption[]>> = {};\n  /** Tracks how many options are currently loading to display a loading bar to the user */\n  public optionsLoading = signal(0);\n\n  public constructor(\n    protected readonly processService: ProcessService,\n    protected readonly data: AiasProcessDialogData,\n    private readonly processName: string\n  ) {\n    const validatedProcessOptions = this.processService.getValidOptions(this.data.idFieldName,\n      this.data.ids, this.data.collection, processName);\n\n    validatedProcessOptions.forEach((options, fieldName) => {\n      options.forEach(opt => {\n        this.optionsLoading.update(v => v + 1);\n\n        opt.valid$\n          .pipe(finalize(() => this.optionsLoading.update(v => v - 1)))\n          .subscribe(valid => {\n            if (valid) {\n              this.options[fieldName] ??= signal([]);\n              this.options[fieldName].update(v => {\n                v.push({ label: opt.label, value: opt.value });\n                return v;\n              });\n            }\n          });\n      });\n    });\n  }\n\n  protected abstract preparePayload(): any;\n\n  public submit(): void {\n    this.isProcessing = true;\n    this.processStarted = true;\n    this.hasError = false;\n\n    try {\n      const payload = this.preparePayload();\n\n      this.processService.process(this.processName, this.data.ids, payload, this.data.collection).subscribe({\n        next: (result) => {\n          this.statusResult = result;\n\n          // Convert time to milliseconds\n          result.created *= 1000;\n          result.started *= 1000;\n          result.finished *= 1000;\n          result.updated *= 1000;\n\n          const executionObservable = timer(0, DEFAULT_TASK_RETRIEVAL_INTERVAL);\n          this.statusSub = executionObservable.pipe(takeUntil(this.unsubscribeStatus)).subscribe(() => {\n            this.getStatus(result.jobID);\n          });\n        },\n        error: (err) => {\n          this.isProcessing = false;\n          this.hasError = true;\n          console.error(err);\n        }\n      });\n    } catch (e) {\n      console.error(e);\n      this.isProcessing = false;\n      this.hasError = true;\n    }\n  }\n\n  private getStatus(jobId: string) {\n    this.processService.getJobStatus(this.processName, jobId).subscribe({\n      next: (job) => {\n        this.statusResult = job;\n        if (job.status !== ProcessStatus.accepted && job.status !== ProcessStatus.running) {\n          this.unsubscribeStatus.next();\n          this.isProcessing = false;\n        }\n      },\n      error: (err) => {\n        this.unsubscribeStatus.next();\n        this.hasError = true;\n        this.isProcessing = false;\n      }\n    });\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { DatePipe } from '@angular/common';\nimport { Component, computed, input } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { ProcessOutput, ProcessStatus } from '../../../tools/process.interface';\nimport { DeltaTimePipe } from 'arlas-web-components';\nimport { MatTooltip } from '@angular/material/tooltip';\n\n@Component({\n  selector: 'arlas-aias-result',\n  templateUrl: './aias-result.component.html',\n  styleUrls: ['./aias-result.component.scss', '../aias-process.scss'],\n  imports: [\n    TranslateModule,\n    DatePipe,\n    MatProgressBarModule,\n    MatDialogModule,\n    MatButtonModule,\n    DeltaTimePipe,\n    MatTooltip\n  ]\n})\nexport class AiasResultComponent {\n\n  public isProcessing = input(false);\n\n  public statusResult = input<ProcessOutput | null >(null);\n\n  public hasError = input(false);\n\n  public processName = input('');\n\n  public processAction = input('');\n  // Whether to display or not json message\n  protected displayMessage =  computed(() =>  this.intermediateState() || this.hasError()\n    || this.statusResult()?.status === ProcessStatus.failed);\n  // Calculate duration\n  protected duration =  computed(() => {\n    const createdDateMillis =  this.statusResult()?.created ?? 0;\n    const endDateMillis = this.statusResult()?.finished ?? 0;\n    return this.intermediateState() ? Date.now() - createdDateMillis : endDateMillis - createdDateMillis;\n  });\n  // Check in witch state we are to know what we show\n  protected intermediateState = computed(() =>\n    this.statusResult()?.status === ProcessStatus.running ||\n    this.statusResult()?.status === ProcessStatus.accepted || this.statusResult()?.status === ProcessStatus.dismissed);\n}\n","<div class=\"process-result\">\n  @if (isProcessing()) {\n    <mat-progress-bar [mode]=\"'indeterminate'\"></mat-progress-bar>\n\n    @if (!!statusResult()?.status) {\n      <div class=\"processing\">\n        <div>{{ processAction() | translate }}</div>\n        <div class=\"status status-{{statusResult()?.status}}\">{{ statusResult()?.status | translate }}</div>\n      </div>\n    }\n  } @else if (!hasError()) {\n    <div class=\"section\">\n      <div class=\"section__title\">{{ 'Result' | translate}}</div>\n      <div class=\"section__item\">\n          <div class=\"item__key\">{{ 'Creation date' | translate }}</div>\n          <div class=\"item__value\">{{ (statusResult()?.created | date:'medium') ?? '--' }}</div>\n      </div>\n      <div class=\"section__item\">\n        <div class=\"item__key\">{{ 'Start date' | translate }}</div>\n        <div class=\"item__value\">{{ (statusResult()?.started | date:'medium') ?? '--' }}</div>\n      </div>\n      <div class=\"section__item\">\n        <div class=\"item__key\">{{ 'Duration' | translate }}</div>\n        <div class=\"item__value\">{{ (duration() | deltaTime) ?? '--' }}</div>\n      </div>\n      @if(intermediateState()){\n        <div class=\"section__item\">\n          <div class=\"item__key\">{{ 'Updated date' | translate }}</div>\n          <div class=\"item__value\">{{ (statusResult()?.updated | date:'medium') ?? '--' }}</div>\n        </div>\n      }\n      <div class=\"section__item\">\n        <div class=\"item__key\">{{ 'Status' | translate }}</div>\n        <div class=\"item__value\"><span class=\"item__status status-{{statusResult()?.status}}\">{{ statusResult()?.status | translate }}</span></div>\n      </div>\n\n      <div class=\"section__item\">\n        <div class=\"item__key\">{{ 'Resource id' | translate }}</div>\n        <div class=\"item__value item__overflow\" [matTooltip]=\"statusResult()?.resourceID\">{{ statusResult()?.resourceID }}</div>\n      </div>\n\n      @if (statusResult()?.message && displayMessage()) {\n      <div class=\"section__item\">\n        <div class=\"item__key\">{{ 'Message' | translate }}</div>\n        <div class=\"item__value item__overflow\" [matTooltip]=\"statusResult()?.message\"> {{ statusResult()?.message }}</div>\n      </div>\n      }\n    </div>\n  }\n\n  @if (hasError()) {\n    <div class=\"error\">\n      {{ 'processing error occured' | translate:{processingName: (processName() | translate)} }}\n    </div>\n  }\n\n\n  <div class=\"close\">\n    <button mat-dialog-close=\"true\" matButton=\"outlined\">{{ 'Close dialog' | translate }}</button>\n  </div>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { STEPPER_GLOBAL_OPTIONS } from '@angular/cdk/stepper';\nimport { Component, inject, Inject, OnDestroy, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { MarkerModule } from '@colsen1991/ngx-translate-extract-marker/extras';\nimport { TranslateDirective, TranslatePipe } from '@ngx-translate/core';\nimport { Subject, takeUntil } from 'rxjs';\nimport { ProcessService } from '../../../services/process/process.service';\nimport { ThemeService } from '../../../services/theme.service';\nimport { AiasDownloadDialogData, AiasProcess } from '../aias-process';\nimport { AiasResultComponent } from '../aias-result/aias-result.component';\n\nexport const DOWNLOAD_PROCESS_NAME = marker('download');\n\nexport interface AiasDownloadPayload {\n  raw_archive: boolean | null | undefined;\n  target_format: string | null | undefined;\n  target_projection: string | null | undefined;\n  crop_wkt?: string | null;\n}\n\n@Component({\n  selector: 'arlas-aias-download',\n  templateUrl: './aias-download.component.html',\n  styleUrls: ['./aias-download.component.scss', '../aias-process.scss'],\n  providers: [\n    {\n      provide: STEPPER_GLOBAL_OPTIONS,\n      useValue: { displayDefaultIndicatorType: false }\n    }\n  ],\n  imports: [\n    TranslatePipe,\n    MatStepperModule,\n    MatFormFieldModule,\n    MatSelectModule,\n    MatButtonModule,\n    TranslateDirective,\n    ReactiveFormsModule,\n    MarkerModule,\n    AiasResultComponent,\n    MatIconModule,\n    MatTooltipModule,\n    MatDialogModule,\n    MatProgressBarModule,\n    MatSlideToggleModule\n  ]\n})\nexport class AiasDownloadComponent extends AiasProcess implements OnInit, OnDestroy {\n\n  public formGroup = new FormGroup({\n    raw_archive: new FormControl<boolean>(true),\n    do_crop_wkt: new FormControl<boolean>(false),\n    target_projection: new FormControl<string>(marker('native')),\n    target_format: new FormControl<string>('native')\n  });\n\n  public hasAoi = false;\n  public displayAoiForms = false;\n  public displayFormatForm = false;\n  public displayProjectionFrom = false;\n\n  public tooltipDelay = 2000;\n\n  private readonly _onDestroy$ = new Subject();\n  protected readonly themeService = inject(ThemeService);\n\n  public constructor(\n    protected readonly processService: ProcessService,\n    @Inject(MAT_DIALOG_DATA) protected data: AiasDownloadDialogData\n  ) {\n    super(processService, data, DOWNLOAD_PROCESS_NAME);\n  }\n\n  public ngOnInit(): void {\n    this.hasAoi = this.data.wktAoi !== undefined && this.data.wktAoi !== null && this.data.wktAoi !== '';\n    this._listenFormsChanges();\n  }\n\n  public ngOnDestroy(): void {\n    if (!!this.statusSub) {\n      this.statusSub.unsubscribe();\n    }\n    this.unsubscribeStatus.next();\n    this._onDestroy$.next(true);\n    this._onDestroy$.complete();\n  }\n\n  private _listenFormsChanges(): void {\n    this.formGroup.controls.raw_archive\n      .valueChanges\n      .pipe(takeUntil(this._onDestroy$))\n      .subscribe(checked => {\n        this.formGroup.controls.do_crop_wkt.setValue(false);\n        this.updateFormDisplayConditions();\n        if (checked) {\n          this.formGroup.controls.target_format.setValue('native');\n          this.formGroup.controls.target_projection.setValue('native');\n        }\n      });\n\n    this.formGroup.controls.do_crop_wkt\n      .valueChanges\n      .pipe(takeUntil(this._onDestroy$))\n      .subscribe(checked => {\n        this.updateFormDisplayConditions();\n        if (checked) {\n          this.formGroup.controls.target_projection.setValue('native');\n        }\n      });\n  }\n\n  private hasOneItemToDownload(): boolean {\n    return this.data.nbProducts === 1;\n  }\n\n  private downloadAllElements(): boolean {\n    return !!this.formGroup.value.raw_archive;\n  }\n\n  private updateFormDisplayConditions() {\n    this.displayAoiForms = !this.downloadAllElements() && this.hasAoi;\n    this.displayFormatForm = !this.downloadAllElements() && this.hasOneItemToDownload();\n    this.displayProjectionFrom =  !this.downloadAllElements() && !this.formGroup.controls.do_crop_wkt.value &&  this.hasOneItemToDownload();\n  }\n\n  protected preparePayload() {\n    const payload: AiasDownloadPayload = {\n      raw_archive: this.formGroup.value.raw_archive,\n      target_format: this.formGroup.value.target_format,\n      target_projection: this.formGroup.value.target_projection,\n    };\n\n    if (this.formGroup.value.do_crop_wkt === true && this.hasAoi && this.data?.wktAoi) {\n      payload.crop_wkt = this.data.wktAoi;\n    }\n\n    return payload;\n  }\n}\n","<div mat-dialog-title>\n  {{ 'Download' | translate }}\n  <div class=\"sub-title\"\n    [translate]=\"(data.nbProducts >= 2) ? 'Download more products' : 'Download one product'\" [translateParams]=\"{value: data.nbProducts}\">\n  </div>\n</div>\n\n<div mat-dialog-content [class.dark-theme]=\"themeService.isDarkMode()\">\n  @if (optionsLoading() > 0) {\n    <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n  }\n\n  <mat-stepper [linear]=\"true\">\n    <mat-step [stepControl]=\"formGroup\" [editable]=\"!processStarted\" [label]=\"'Parameters' | translate\" state=\"params\">\n      <div class=\"step\">\n        <form [formGroup]=\"formGroup\" class=\"form\">\n          <section class=\"field\">\n            <mat-form-field class=\"field\" appearance=\"outline\">\n              <mat-label>{{ 'Download type' | translate }}</mat-label>\n              <mat-select [formControlName]=\"'raw_archive'\" class=\"data-cy-target_format\">\n                <mat-option [value]=\"true\">{{ (data.nbProducts >= 2) ? ('Download archives' | translate) : ('Download archive' | translate)  }}</mat-option>\n                <mat-option [value]=\"false\">{{ (data.nbProducts >= 2) ? ('Download images' | translate) : ('Download image' | translate)  }}</mat-option>\n              </mat-select>\n              @if (formGroup.value.raw_archive) {\n                <mat-hint class=\"warning-text\">\n                  <mat-icon>warning</mat-icon>\n                  <span>{{ 'No cropping possible' | translate }}</span>\n                </mat-hint>\n              }\n            </mat-form-field>\n          </section>\n\n          @if (displayAoiForms) {\n            <section class=\"field\">\n              <mat-slide-toggle [formControlName]=\"'do_crop_wkt'\">{{ 'Crop using the geographical filter' | translate }}\n              </mat-slide-toggle>\n            </section>\n          }\n\n          @if (displayProjectionFrom) {\n            <mat-form-field class=\"field\" appearance=\"outline\"\n              [matTooltip]=\"'Coordinate system for the downloaded products' | translate\"\n              [matTooltipShowDelay]=\"tooltipDelay\"\n              [matTooltipPosition]=\"'before'\">\n              <mat-label>{{ 'Coordinate system' | translate }}</mat-label>\n              <mat-select [formControlName]=\"'target_projection'\" class=\"data-cy-target_projection\">\n                @for (opt of options['target_projection']?.(); track opt.value) {\n                  <mat-option [value]=\"opt.value\">{{ opt.label  | translate }}</mat-option>\n                }\n              </mat-select>\n              <mat-hint [align]=\"'end'\">{{ 'Coordinate system for the downloaded products' | translate }}</mat-hint>\n            </mat-form-field>\n          }\n\n          @if (displayFormatForm) {\n            <mat-form-field class=\"field\" appearance=\"outline\"\n              [matTooltip]=\"'Format of downloaded products' | translate\"\n              [matTooltipShowDelay]=\"tooltipDelay\"\n              [matTooltipPosition]=\"'before'\">\n              <mat-label>{{ 'Format' | translate }}</mat-label>\n              <mat-select [formControlName]=\"'target_format'\" class=\"data-cy-target_format\">\n                @for (opt of options['target_format']?.(); track opt.value) {\n                  <mat-option [value]=\"opt.value\">{{ opt.label| translate }}</mat-option>\n                }\n              </mat-select>\n              <mat-hint [align]=\"'end'\">{{ 'Format of downloaded products' | translate }}</mat-hint>\n            </mat-form-field>\n          }\n        </form>\n        <div class=\"buttons\">\n          <button matButton=\"outlined\" mat-dialog-close>{{ 'Cancel' | translate }}</button>\n          <button [color]=\"'primary'\" matStepperNext matButton=\"filled\" [disabled]=\"!formGroup.valid\">\n            {{ 'Next' | translate }}\n          </button>\n        </div>\n      </div>\n    </mat-step>\n    <mat-step label=\"{{'Summary' | translate}}\" class=\"step\" state=\"summary\">\n      <div class=\"step\">\n        <div class=\"summary\">\n          <div class=\"infos\">\n            <span\n              [translate]=\"(data.nbProducts >= 2) ? 'You are about to download more products' : 'You are about to download one product'\"\n              [translateParams]=\"{value: data.nbProducts}\"\n            ></span>\n            <span class=\"infos-subtitle\">{{ 'Summary of parameters' | translate }} :</span>\n          </div>\n\n          <div class=\"params\">\n            <span class=\"label\">{{ 'Download type' | translate }} :</span>\n            <span class=\"value\">{{ (formGroup.value.raw_archive) ? ('Archive' | translate) : ('Image' | translate) }}</span>\n          </div>\n\n          @if (formGroup.value.target_projection) {\n            <div class=\"params\">\n              <span class=\"label\">{{ 'Coordinate system for the downloaded products' | translate }} :</span>\n              <span class=\"value\">{{ formGroup.value.target_projection | translate }}</span>\n            </div>\n          }\n\n          @if (formGroup.value.target_format) {\n            <div class=\"params\">\n              <span class=\"label\">{{ 'Format of the products to download' | translate }} :</span>\n              <span class=\"value\">{{ formGroup.value.target_format | translate }}</span>\n            </div>\n          }\n          @if (formGroup.value.do_crop_wkt) {\n            <div class=\"params\">\n              <span class=\"label\">{{ 'Crop using the geographical filter'| translate }} :</span>\n              <span class=\"value\">{{ (formGroup.value.do_crop_wkt ? 'yes' : 'no') | translate }}</span>\n            </div>\n          }\n        </div>\n        @if (!isProcessing && !processStarted) {\n          <div class=\"buttons\">\n            <button matButton=\"outlined\" matStepperPrevious>{{ 'Previous' | translate }}</button>\n            <button [color]=\"'primary'\" [disabled]=\"!formGroup.valid\" matStepperNext matButton=\"filled\" (click)=\"submit()\">\n              {{ 'Download' | translate }}\n            </button>\n          </div>\n        }\n      </div>\n    </mat-step>\n\n    <!-- Icon overrides. -->\n    <ng-template matStepperIcon=\"params\">\n      <mat-icon>settings</mat-icon>\n    </ng-template>\n    <ng-template matStepperIcon=\"summary\">\n      <mat-icon>summarize</mat-icon>\n    </ng-template>\n    <ng-template matStepperIcon=\"edit\">\n      <mat-icon>check</mat-icon>\n    </ng-template>\n  </mat-stepper>\n\n  @if (processStarted) {\n    <arlas-aias-result [isProcessing]=\"isProcessing\" [statusResult]=\"statusResult\" [hasError]=\"hasError\"\n      [processName]=\"'Download' | marker\" [processAction]=\"'Downloading...' | marker\"></arlas-aias-result>\n  }\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { STEPPER_GLOBAL_OPTIONS } from '@angular/cdk/stepper';\nimport { Component, inject, Inject, OnDestroy } from '@angular/core';\nimport { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { MarkerModule } from '@colsen1991/ngx-translate-extract-marker/extras';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ProcessService } from '../../../services/process/process.service';\nimport { ThemeService } from '../../../services/theme.service';\nimport { AiasEnrichDialogData, AiasProcess } from '../aias-process';\nimport { AiasResultComponent } from '../aias-result/aias-result.component';\nimport { MatCheckbox } from '@angular/material/checkbox';\n\nexport const ENRICH_PROCESS_NAME = marker('enrich');\n\n@Component({\n  selector: 'arlas-aias-enrich',\n  templateUrl: './aias-enrich.component.html',\n  styleUrls: ['./aias-enrich.component.scss', '../aias-process.scss'],\n  providers: [{\n    provide: STEPPER_GLOBAL_OPTIONS, useValue: { displayDefaultIndicatorType: false }\n  }],\n  imports: [\n    TranslatePipe,\n    MatStepperModule,\n    MatFormFieldModule,\n    MatSelectModule,\n    MatButtonModule,\n    ReactiveFormsModule,\n    MarkerModule,\n    MatIconModule,\n    AiasResultComponent,\n    MatDialogModule,\n    MatChipsModule,\n    MatProgressBarModule,\n    MatCheckbox\n  ]\n})\nexport class AiasEnrichComponent extends AiasProcess implements OnDestroy {\n\n  public formGroup = new FormGroup({\n    asset_type: new FormControl<string>('', Validators.required),\n    enrichments: new FormControl<string[]>([], Validators.required)\n  });\n\n  public formatChecked = this.options['enrichments']?.().map(o => ({\n      value: o,\n      checked: false\n  }));\n\n  protected readonly themeService = inject(ThemeService);\n\n  public constructor(\n    protected readonly processService: ProcessService,\n    @Inject(MAT_DIALOG_DATA) protected data: AiasEnrichDialogData\n  ) {\n    super(processService, data, ENRICH_PROCESS_NAME);\n  }\n\n  public ngOnDestroy() {\n    this.unsubscribeStatus.next();\n  }\n\n  protected preparePayload() {\n    return this.formGroup.value;\n  }\n\n  protected update(checked: boolean, i: number) {\n    const v = this.formatChecked?.at(i);\n    if (v) {\n      v.checked = checked;\n    }\n    const format = this.formatChecked?.filter(v => v.checked).map(v => v.value.value);\n    this.formGroup.get('enrichments')?.setValue(format);\n  }\n}\n","<div mat-dialog-title>\n  {{ 'Enrich' | translate }}\n  <div class=\"sub-title\">\n    {{ 'Enrich products' | translate}}\n  </div>\n</div>\n\n<div mat-dialog-content [class.dark-theme]=\"themeService.isDarkMode()\">\n  @if (optionsLoading() > 0) {\n    <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n  }\n\n  <mat-stepper [linear]=\"true\">\n    <mat-step [stepControl]=\"formGroup\" [editable]=\"!processStarted\"\n      [label]=\"'Parameters' | translate\" state=\"params\">\n      <div class=\"step\">\n        <form [formGroup]=\"formGroup\" class=\"form\">\n          <section class=\"field\">\n            <mat-form-field class=\"field\" appearance=\"outline\">\n              <mat-label>{{ 'Enrichment type' | translate }}</mat-label>\n              <mat-select [formControlName]=\"'asset_type'\">\n                @for (e of options['asset_type']?.(); track e.value) {\n                  <mat-option [value]=\"e.value\">\n                  {{ e.label | translate }}</mat-option>\n                }\n              </mat-select>\n            </mat-form-field>\n\n            @if (formGroup.controls.asset_type.value === 'cog') {\n              <ul class=\"no-bullet\">\n              @for (format of formatChecked; track format.value; let i = $index) {\n                <li>\n                  <mat-checkbox [checked]=\"format.checked\" (change)=\"update($event.checked, i)\">\n                    {{ format.value.label | translate }}\n                  </mat-checkbox>\n                </li>\n              }\n              </ul>\n            }\n          </section>\n        </form>\n\n        <div class=\"buttons\">\n          <button matButton=\"outlined\" mat-dialog-close>{{ 'Cancel' | translate }}</button>\n          <button [color]=\"'primary'\" matStepperNext matButton=\"filled\" [disabled]=\"!formGroup.valid\">\n            {{ 'Next' | translate }}\n          </button>\n        </div>\n      </div>\n    </mat-step>\n\n    <mat-step label=\"{{'Summary' | translate}}\" class=\"step\" state=\"summary\">\n      <div class=\"step\">\n      <div class=\"section\">\n          <div class=\"section__title\">{{ 'Your request' | translate}}</div>\n          <div class=\"section__item\">\n            <div class=\"item__key\">{{ 'Enrichment type' | translate }}</div>\n            <div class=\"item__value\">{{formGroup.controls.asset_type.value | translate }}</div>\n          </div>\n\n        @if (formGroup.controls.asset_type.value === 'cog') {\n          <div class=\"section__item\">\n            <div class=\"item__key\">{{ 'COG formats' | translate }}</div>\n            <div class=\"item__value\">\n              @for (enrichment of formGroup.controls.enrichments.value; track enrichment) {\n                {{ enrichment | translate }}\n                @if (!$last) {\n                  ,\n                }\n              }</div>\n          </div>\n        }\n      </div>\n        @if (!isProcessing && !processStarted) {\n          <div class=\"buttons\">\n            <button matButton=\"outlined\" matStepperPrevious>{{ 'Previous' | translate }}</button>\n            <button [color]=\"'primary'\" [disabled]=\"!formGroup.valid\" matStepperNext matButton=\"filled\" (click)=\"submit()\">\n              {{ 'Enrich' | translate }}\n            </button>\n          </div>\n        }\n      </div>\n    </mat-step>\n\n    <!-- Icon overrides -->\n    <ng-template matStepperIcon=\"params\">\n      <mat-icon>settings</mat-icon>\n    </ng-template>\n    <ng-template matStepperIcon=\"summary\">\n      <mat-icon>summarize</mat-icon>\n    </ng-template>\n    <ng-template matStepperIcon=\"edit\">\n      <mat-icon>check</mat-icon>\n    </ng-template>\n  </mat-stepper>\n\n  @if (processStarted) {\n    <arlas-aias-result [isProcessing]=\"isProcessing\" [statusResult]=\"statusResult\" [hasError]=\"hasError\"\n      [processName]=\"'Enrich' | marker\" [processAction]=\"'Enriching...' | marker\"></arlas-aias-result>\n  }\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { inject, Pipe, PipeTransform } from '@angular/core';\nimport { Contributor } from 'arlas-web-core';\nimport { ArlasCollaborativesearchService } from '../services/collaborative-search/arlas.collaborative-search.service';\n\n/**\n * Returns the contributor that has the given contributorId\n */\n@Pipe({\n  name: 'getContributor'\n})\nexport class GetContributorPipe implements PipeTransform {\n  private readonly collaborativeService = inject(ArlasCollaborativesearchService);\n\n  public transform(contributorId: string | undefined): Contributor | undefined {\n    if (contributorId) {\n      return this.collaborativeService.registry.get(contributorId);\n    }\n    return undefined;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { OverlayRef } from '@angular/cdk/overlay';\nimport { InjectionToken } from '@angular/core';\nimport { FormGroup } from '@angular/forms';\nimport { Filter } from 'arlas-api';\nimport { ARLASDonutTooltip, HistogramTooltip, TimelineTooltip } from 'arlas-d3';\nimport {\n  ComputeContributor, DetailedHistogramContributor, HistogramContributor,\n  ResultListContributor, SwimLaneContributor, TreeContributor\n} from 'arlas-web-contributors';\nimport { Collaboration, Contributor } from 'arlas-web-core';\nimport { ARLASPowerbarTooltip } from '../components/powerbar-tooltip-overlay/powerbar-tooltip-overlay.component';\nimport { ArlasSearchField } from '../components/share/model/ArlasSearchField';\nimport { ArlasError } from './errors/error';\n\nexport const CONFIG_ID_QUERY_PARAM = 'config_id';\nexport interface GetOptions {\n  headers?: Record<string, any>;\n  responseType?: 'json';\n};\nexport type GetOptionsFunction = () => GetOptions;\nexport const GET_OPTIONS = new InjectionToken<GetOptionsFunction>('get_options');\nexport const NOT_CONFIGURED = 'NOT_CONFIGURED';\n\nexport interface ConfigAction {\n  type: ConfigActionEnum;\n  enabled?: boolean;\n  name?: string;\n  url?: string;\n  configIdParam?: string;\n  config: Config;\n}\n\nexport interface Config {\n  id: string;\n  name: string;\n  value: string;\n  lastUpdate: number;\n  readers: Array<string>;\n  writers: Array<string>;\n  zone: string;\n  org: string;\n  displayPublic: boolean;\n}\n\nexport enum ConfigActionEnum {\n  VIEW,\n  DELETE,\n  EDIT,\n  DUPLICATE,\n  SHARE,\n  CREATE,\n  RENAME\n}\n\nexport interface ArlasStorageObject {\n  id: string;\n  date: Date;\n  name: string;\n}\n\nexport enum ArlasStorageType {\n  local,\n  persistence\n}\n\nexport interface SpinnerOptions {\n  color?: string;\n  diameter?: number;\n  strokeWidth?: number;\n}\n\nexport interface CollectionUnit {\n  collection: string;\n  unit: string;\n  ignored: boolean;\n}\n\nexport interface CollectionCount {\n  count: number;\n  collection: string;\n  color: string;\n  hasCentroidPath: boolean;\n  hasGeometryPath: boolean;\n  ignored: boolean;\n  unit?: string;\n}\n\nexport interface AuthentSetting {\n  use_discovery: boolean;\n  force_connect: boolean;\n  use_authent: boolean;\n  auth_mode?: 'openid' | 'iam';\n  client_id: string;\n  issuer: string;\n  scope?: string;\n  response_type?: string;\n  redirect_uri?: string;\n  silent_refresh_redirect_uri?: string;\n  silent_refresh_timeout?: number;\n  timeout_factor?: number;\n  session_checks_enabled?: boolean;\n  show_debug_information?: boolean;\n  clear_hash_after_login?: boolean;\n  disable_at_hash_check?: boolean;\n  require_https?: boolean;\n  dummy_client_secret?: string;\n  userinfo_endpoint?: string;\n  token_endpoint?: string;\n  jwks_endpoint?: string;\n  login_url?: string;\n  logout_url?: string;\n  post_logout_redirect_uri?: string;\n  storage?: string;\n  custom_query_params?: Object[];\n  threshold?: number;\n  url?: string;\n  sign_up_enabled?: boolean;\n}\n\nexport interface GeocodingSetting {\n  enabled?: boolean;\n  find_place_url?: string;\n  find_place_zoom_to?: number;\n}\n\nexport interface DeniedAccessData {\n  error: ArlasError;\n  forceAction?: boolean;\n}\n\nexport enum ZoomToDataStrategy {\n  NONE = 'none',\n  CENTROID = 'centroid',\n  GEOMETRY = 'geometry'\n}\n\n/**\n * This interface lists the possible methods to apply on a Map object of a given cartographic client\n */\nexport interface MapService {\n  zoomToData(collection: string, geoPointField: string, map: any): void;\n}\n\nexport function hashCode(str: string) { // java String#hashCode\n  let hash = 0;\n  for (let i = 0; i < str.length; i++) {\n    hash = str.charCodeAt(i) + ((hash << 5) - hash);\n  }\n  return hash;\n}\n\nexport function intToRGB(i: number) {\n  const c = (i & 0x00FFFFFF)\n    .toString(16)\n    .toUpperCase();\n  return '00000'.substring(0, 6 - c.length) + c;\n}\n\nexport class Guid {\n  public newGuid() {\n    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n      const r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);\n      return v.toString(16);\n    });\n  }\n}\n\nexport function sortOnDate<T extends ArlasStorageObject>(data: T[]): T[] {\n  const sortedData = data.sort((a, b) => {\n    let propertyA: number = new Date(0).getTime();\n    let propertyB: number = new Date(0).getTime();\n    [propertyA, propertyB] = [a.date.getTime(), b.date.getTime()];\n    const valueA = isNaN(+propertyA) ? propertyA : +propertyA;\n    const valueB = isNaN(+propertyB) ? propertyB : +propertyB;\n\n    return (valueA < valueB ? -1 : 1) * (-1);\n  });\n  return sortedData;\n}\n\nexport function getKeyForColor(dataModel: Record<string, Collaboration>): string {\n  const finalKeys: string[] = [];\n  Object.keys(dataModel).forEach(k => {\n    const key = new Set();\n    const dataModelFilters = dataModel[k].filters;\n    if (!!dataModelFilters) {\n      dataModelFilters.forEach((filters: Filter[], collection: string) => {\n        filters.forEach(filter => {\n          if (filter.f !== undefined) {\n            filter.f.forEach(e => e\n              .forEach(ex => {\n                if (!key.has(collection + 'f' + ex.field + ex.op)) {\n                  key.add('f' + ex.field + ex.op);\n                }\n              }));\n          }\n          if (filter.q !== undefined) {\n            if (!key.has(collection + 'q')) {\n              key.add(collection + 'q');\n            }\n          }\n        });\n      });\n\n    }\n    finalKeys.push(Array.from(key).sort().join(','));\n  });\n  return intToRGB(hashCode(finalKeys.sort().join(',')));\n}\n\nexport function getFieldProperties(fieldList: any, parentPrefix?: string,\n  arlasFields: { label: string; type: string; }[] = [], isFirstLevel = true\n): { label: string; type: string; }[] {\n\n  Object.keys(fieldList).forEach(fieldName => {\n    if (fieldList[fieldName].type === 'OBJECT') {\n      const subFields = fieldList[fieldName].properties;\n      if (subFields) {\n        getFieldProperties(subFields, (parentPrefix ? parentPrefix : '') + fieldName + '.', arlasFields, false);\n      }\n    } else {\n      arlasFields.push({ label: (parentPrefix ? parentPrefix : '') + fieldName, type: fieldList[fieldName].type });\n    }\n  });\n\n  if (isFirstLevel) {\n    return arlasFields;\n  }\n  return [];\n}\n\n\n\nexport function ConfirmedValidator(controlName: string, matchingControlName: string) {\n  return (formGroup: FormGroup) => {\n    const control = formGroup.controls[controlName];\n    const matchingControl = formGroup.controls[matchingControlName];\n    if (matchingControl.errors && !matchingControl.errors.confirmedValidator) {\n      return;\n    }\n    if (control.value !== matchingControl.value) {\n      matchingControl.setErrors({ confirmedValidator: true });\n    } else {\n      matchingControl.setErrors(null);\n    }\n  };\n}\n\nexport class ArlasOverlayRef {\n  public constructor(private overlayRef: OverlayRef) { }\n  public close(): void {\n    if (!!this.overlayRef) {\n      this.overlayRef.dispose();\n    }\n  }\n}\n\n/**\n * Extended structure for an histogram tooltip used to communicate to the overlay what kind of render to apply\n */\nexport interface HistogramTooltipExtended extends HistogramTooltip {\n  chartType: 'histogram' | 'swimlane';\n}\n\nexport const HISTOGRAM_TOOLTIP_DATA = new InjectionToken<HistogramTooltipExtended>('HISTOGRAM_TOOLTIP_DATA');\nexport const CALENDAR_TIMELINE_TOOLTIP_DATA = new InjectionToken<TimelineTooltip>('CALENDAR_TIMELINE_TOOLTIP_DATA');\nexport const DONUT_TOOLTIP_DATA = new InjectionToken<ARLASDonutTooltip>('DONUT_TOOLTIP_DATA');\nexport const POWERBAR_TOOLTIP_DATA = new InjectionToken<ARLASPowerbarTooltip>('POWERBAR_TOOLTIP_DATA');\n\nexport interface WidgetConfiguration {\n  /**\n   * @description Identifier of the contributor that serves data to the graphic component.\n   */\n  contributorId: string;\n\n  uuid: string;\n  /**\n   * @description swimlane | histogram | donut | powerbars | resultlist\n   */\n  componentType: string;\n  /**\n * @description whether we display export csv button\n */\n  showExportCsv?: boolean;\n  /**\n   * @description Set of inputs of a ARLAS-web-component.\n   */\n  input: any;\n}\n\n/**\n * @param param Parameter to extract\n * @returns Value of the parameter contained in the URL\n */\nexport function getParamValue(param: string) {\n  let paramValue = null;\n  const url = window.location.href;\n  const regex = new RegExp('[?&]' + param + '(=([^&#]*)|&|#|$)');\n  const results = regex.exec(url);\n  if (results && results[2]) {\n    paramValue = results[2];\n  }\n  return paramValue;\n}\n\nexport function hasContributorData(contributor: Contributor): boolean {\n  if (contributor instanceof ComputeContributor) {\n    return contributor.metricValue !== undefined;\n  } else if (contributor instanceof DetailedHistogramContributor) {\n    return contributor.chartData.length > 0;\n  } else if (contributor instanceof HistogramContributor) {\n    return contributor.chartData.length > 0;\n  } else if (contributor instanceof ResultListContributor) {\n    return contributor.data.length > 0;\n  } else if (contributor instanceof SwimLaneContributor) {\n    return contributor.swimData !== undefined;\n  } else if (contributor instanceof TreeContributor) {\n    return contributor.treeData !== undefined;\n  } else {\n    // Other types of histogram don't have data\n    return false;\n  }\n}\n\nexport function orderAlphabeticallyArlasSearchFields(arlasSearchFieldA: ArlasSearchField, arlasSearchFieldB: ArlasSearchField,) {\n  const comparedWordA = arlasSearchFieldA?.label.trim().toLowerCase();\n  const comparedWordB = arlasSearchFieldB?.label.trim().toLowerCase();\n  return comparedWordA.localeCompare(comparedWordB);\n}\n\nexport function flattenData(y: Object) {\n  const out: Record<string, any> = {};\n\n  function flatten(x: Record<string, any>, name = '') {\n    if (typeof x === 'object' && !Array.isArray(x)) {\n      for (const a in x) {\n        if (Object.prototype.hasOwnProperty.call(x, a)) {\n          flatten(x[a], name + a + '_');\n        }\n      }\n    } else if (Array.isArray(x)) {\n      for (let i = 0; i < x.length; i++) {\n        flatten(x[i], name + i + '_');\n      }\n    } else {\n      out[name.slice(0, -1)] = x;\n    }\n  }\n  flatten(y);\n  return out;\n}\n\n/**\n * Generates a deterministic 8-character hex hash from a unique user identifier.\n */\nexport function generateUserCacheBust(userId: string): string {\n  let hash = 0;\n  for (let i = 0; i < userId.length; i++) {\n    // Multiply current hash by 31 (prime) using 32-bit integer arithmetic to avoid floating point drift,\n    // then add the code point of the current character\n    hash = Math.trunc(Math.imul(31, hash) + (userId.codePointAt(i) ?? 0));\n  }\n  // Convert to unsigned 32-bit integer to ensure a positive value,\n  // then format as a zero-padded 8-character hex string\n  return (hash >>> 0).toString(16).padStart(8, '0');\n}\n\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { AuthentSetting } from '../../tools/utils';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ArlasAuthentificationService {\n\n  public authSettings!: AuthentSetting;\n\n  protected emitSessionEnd() {\n    localStorage.setItem('arlas-logout-event', 'logout' + Date.now());\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { ArlasMessage, LoginData, PermissionData, PermissionDef, UserData } from 'arlas-iam-api';\nimport { finalize, Subscription, tap, throwError } from 'rxjs';\nimport { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';\nimport { Observable } from 'rxjs/internal/Observable';\nimport { Subject } from 'rxjs/internal/Subject';\nimport { from } from 'rxjs/internal/observable/from';\nimport { timer } from 'rxjs/internal/observable/timer';\nimport { takeUntil } from 'rxjs/internal/operators/takeUntil';\nimport { AuthentSetting, NOT_CONFIGURED } from '../../tools/utils';\nimport { ArlasAuthentificationService } from '../arlas-authentification/arlas-authentification.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\nimport { ArlasIamApi } from '../startup/startup.service';\n\nexport const ARLAS_ORG_FILTER = 'arlas-org-filter';\n\n\nexport interface IamHeader {\n  Authorization: string;\n  [ARLAS_ORG_FILTER]?: string;\n}\n@Injectable({\n  providedIn: 'root'\n})\nexport class ArlasIamService extends ArlasAuthentificationService {\n\n  private options: Record<string, any> = {};\n  private arlasIamApi!: ArlasIamApi;\n  private refreshTokenTimer$: Subscription | undefined;\n  private readonly unsubscribe: Subject<void> = new Subject<void>();\n  private readonly tokenRefreshedSource = new BehaviorSubject<LoginData | null>(null);\n  public tokenRefreshed$ = this.tokenRefreshedSource.asObservable();\n\n  private currentOrganisation?: string;\n  public user: UserData | undefined;\n  public reloadState?: string;\n  public storage = new Map();\n\n  public constructor(\n    private readonly router: Router,\n    private readonly settings: ArlasSettingsService\n  ) {\n    super();\n  }\n\n  public declareReloadState(reloadState: string) {\n    this.reloadState = reloadState;\n  }\n\n  public consumeReloadState() {\n    if (this.reloadState) {\n      window.open(this.reloadState, '_self');\n    }\n  }\n\n  public setOptions(options: Record<string, any>): void {\n    this.options = options;\n  }\n\n  public setArlasIamApi(api: ArlasIamApi) {\n    this.arlasIamApi = api;\n  }\n\n  /**\n   * - Strores the given access token in localstorage\n   * - Set the headers of iamService with an already stored organisation in localstorage.  */\n  public setHeadersFromAccesstoken(accessToken: string): void {\n    this.storeAccessToken(accessToken);\n    const headers: Record<string, string> = {\n      Authorization: 'Bearer ' + accessToken\n    };\n    const organisation = this.getOrganisation();\n    if (organisation) {\n      headers[ARLAS_ORG_FILTER] = organisation;\n    }\n    this.setOptions({ headers });\n  }\n\n  /** Stores the given org and access token in localstorage + set iamService headers. */\n  public setHeaders(org: string | undefined, accessToken: string): void {\n    this.storeAccessToken(accessToken);\n    this.storeOrganisation(org);\n    const headers = {\n      Authorization: 'Bearer ' + accessToken,\n      [ARLAS_ORG_FILTER]: org\n    };\n    this.setOptions({ headers });\n  }\n\n  public storeAccessToken(accessToken: string): void {\n    this.storage.set('accessToken', accessToken);\n  }\n\n  public getAccessToken(): string {\n    return this.storage.get('accessToken');\n  }\n\n  /** Gets organisation from localstorage.\n   * The method checks if the organisation is defined\n   * If not returned the first of the list in user's organisations.\n   */\n  public getOrganisation(): string | undefined {\n    if (this.currentOrganisation) {\n      return this.currentOrganisation;\n    } else {\n      if (!!this.user?.organisations && this.user.organisations?.length > 0) {\n        return this.user.organisations[0].name;\n      }\n      return undefined;\n    }\n  }\n\n  public storeOrganisation(organisation: string | undefined): void {\n    this.currentOrganisation = organisation;\n  }\n\n  public notifyTokenRefresh(loginData: LoginData | null) {\n    this.tokenRefreshedSource.next(loginData);\n  }\n\n  private clearTokens() {\n    this.storage.delete('accessToken');\n  }\n\n  private clearOrganisation() {\n    this.currentOrganisation = undefined;\n  }\n\n  /** This method should be called right after being logged in\n   * THUS; there is no need to refresh the token at 0; we can wait for the moment the token is about to expire to **start** the timer.\n   * By doing this we avoid refreshing the token twice in a row.\n   * Also starting the refresh at 0 causes some incoherence in localstorage when we activate 'redirect_uri' parameter in settings.yaml\n   */\n  public startRefreshTokenTimer(loginData: LoginData): void {\n    this.tokenRefreshedSource.next(loginData);\n    // permit to obtain accessToken expiration date\n    const jwtToken = JSON.parse(atob(loginData.access_token.split('.')[1]));\n    const exp = jwtToken.exp;\n    const iat = jwtToken.iat;\n    const threshold = (exp-iat)/2;\n    const expires = new Date(exp * 1000);\n    // set a timeout to refresh the accessToken at de half life of the accessToken\n    const timeout = expires.getTime() - Date.now() - (threshold * 1000);\n    // refresh accessToken when timeout ended (passing the refreshToken)\n    // start the timer at 'timeout' which is the duration where the token is about to expire\n    // repeat each 'timeout'\n    this.refreshTokenTimer$ = timer(timeout, timeout).pipe(takeUntil(this.unsubscribe)).subscribe(() => {\n      this.refresh().subscribe({\n        next: (loginData: LoginData) => {\n          // store localy accessToken\n          this.user = loginData.user;\n          this.setHeadersFromAccesstoken(loginData.access_token);\n          this.tokenRefreshedSource.next(loginData);\n        },\n        error: (e) => {\n          this.logout();\n        }\n      });\n    });\n  }\n\n  public initAuthService() {\n    return this.refresh().toPromise()\n      .then(\n        loginData => {\n          if (loginData) {\n            this.user = loginData.user;\n            this.setHeadersFromAccesstoken(loginData.access_token);\n            this.startRefreshTokenTimer(loginData);\n          }\n        })\n      .catch((err) => {\n        this.checkForceConnect();\n        console.error(err);\n      });\n  }\n\n\n  private checkForceConnect() {\n    const authSettings = this.settings.getAuthentSettings();\n    if (!!authSettings && authSettings.force_connect && this.needsRedirection(window.location.pathname)) {\n      this.forceConnect(authSettings);\n    }\n  }\n\n  private needsRedirection(path: string): boolean {\n    return !path.includes('/verify') && !path.includes('/reset') && !path.includes('/register') && !path.includes('/password_forgot');\n  }\n\n  private forceConnect(authSettings: AuthentSetting) {\n    if (authSettings.login_url && authSettings.login_url !== NOT_CONFIGURED) {\n      window.open(authSettings.login_url, '_self');\n    } else {\n      this.router.navigate(['login']);\n    }\n  }\n\n  public isAuthenticated(){\n    return !!this.user;\n  }\n\n  public areSettingsValid(authentSetting: AuthentSetting): [boolean, string] {\n    let valid = true;\n    const missingInfo = [];\n    if (authentSetting && authentSetting.use_authent) {\n      if (!authentSetting.url || authentSetting.url === NOT_CONFIGURED) {\n        valid = false;\n        missingInfo.push('- `iam server url` must be configured when `auth_mode=iam`');\n      }\n      if (!authentSetting.threshold) {\n        valid = false;\n        missingInfo.push('- `iam server threshold` must be configured when `auth_mode=iam`');\n      }\n    }\n    return [valid, missingInfo.join('\\n')];\n  }\n\n  public stopRefreshTokenTimer(): void {\n    this.unsubscribe.next();\n    if (this.refreshTokenTimer$) {\n      this.refreshTokenTimer$.unsubscribe();\n    }\n  }\n\n  public clearStore() {\n    this.clearTokens();\n    this.clearOrganisation();\n  }\n\n  public logoutWithoutRedirection$() {\n    return from(this.arlasIamApi.logout(this.options)).pipe(\n      tap(() => {\n        this.user = undefined;\n        this.clearStore();\n        this.stopRefreshTokenTimer();\n        this.notifyTokenRefresh(null);\n        this.emitSessionEnd();\n      })\n    );\n\n  }\n\n  public logout(redirectPageAfterLogout: string[] = ['/login']): void {\n    this.logoutWithoutRedirection$().pipe(\n      finalize(() => this.router.navigate(redirectPageAfterLogout).then(() => {\n        window.location.reload();\n      }))\n    ).subscribe(() => this.user = undefined);\n  }\n\n  public refresh(): Observable<LoginData> {\n    // No need access token to refresh so we remove the access token in header if present\n    let options = this.options;\n    if (!!options && options.headers && options.headers.Authorization) {\n      delete options.headers.Authorization;\n    }\n    if (!options) {\n      options = { credentials: 'include' };\n    } else {\n      options.credentials = 'include';\n    }\n    return from(this.arlasIamApi.refresh(options));\n  }\n\n  public login(email: string, password: string) {\n    let options = this.options;\n    if (!!options && options.headers && options.headers.Authorization) {\n      delete options.headers.Authorization;\n    }\n    if (!options) {\n      options = { credentials: 'include' };\n    } else {\n      options.credentials = 'include';\n    }\n    return from(this.arlasIamApi.login({ email, password }, options));\n  }\n\n  public signUp(email: string): Observable<UserData> {\n    return from(this.arlasIamApi.createUser({ email }, this.options));\n  }\n\n  public verify(userId: string, token: string, password: string): Observable<UserData> {\n    return from(this.arlasIamApi.verifyUser(password, userId, token, this.options));\n  }\n\n  public reset(userId: string, token: string, password: string): Observable<UserData> {\n    return from(this.arlasIamApi.resetUserPassword(password, userId, token, this.options));\n  }\n\n  public forgot(email: string): Observable<ArlasMessage> {\n    return from(this.arlasIamApi.askPasswordReset(email, this.options));\n  }\n\n  public change(oldPassword: string, newPassword: string): Observable<UserData> {\n    if (this.user?.id) {\n      return from(this.arlasIamApi.updateUser({ oldPassword: oldPassword, newPassword: newPassword }, this.user.id, this.options));\n    }\n    return throwError(() => new Error('No user id'));\n  }\n\n  public createPermission(oid: string, permissionDef: PermissionDef): Observable<PermissionData> {\n    return from(this.arlasIamApi.addPermission(permissionDef, oid, this.options));\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\nimport { inject, Injectable } from '@angular/core';\nimport { DEFAULT_TASK_RETRIEVAL_INTERVAL, TaskSettings, TaskSettingsService } from 'arlas-web-components';\nimport { Task, TaskService } from 'arlas-web-contributors';\nimport { Observable, of } from 'rxjs';\nimport { GET_OPTIONS, GetOptions } from '../tools/utils';\n\n@Injectable({\n  providedIn: 'root',\n})\nexport class ArlasTaskService implements TaskService, TaskSettingsService {\n  private readonly http = inject(HttpClient);\n  private options: GetOptions = {};\n  private readonly getOptions = inject(GET_OPTIONS);\n\n  private readonly services = new Map<string, TaskSettings>();\n\n  public constructor() {\n    this.setOptions(this.getOptions());\n  }\n\n  public setOptions(options: GetOptions): void {\n    this.options = options;\n  }\n\n  public addService(settings: TaskSettings) {\n    if (!settings.enabled) {\n      return;\n    }\n\n    // Check if the user is allowed to fetch the jobs\n    this.http.get(settings.url + '/jobs', this.options)\n      .subscribe({\n        next: () => {\n          settings.taskRetrievalTimer ??= DEFAULT_TASK_RETRIEVAL_INTERVAL;\n          this.services.set(settings.service, settings);\n        },\n        error: (e) => {\n          console.warn(`[ARLAS][TASK] Service ${settings.service} is not available for tasks retrieval`);\n        }\n      });\n  }\n\n  public getServiceTaskSettings(service: string) {\n    return this.services.get(service);\n  }\n\n  public getServiceTasks(collection: string, identifier: string, service: string): Observable<Task[]> {\n    const settings = this.services.get(service);\n    if (!settings?.collections.includes(collection)) {\n      return of([]);\n    }\n\n    return this.http.get(settings.url + '/jobs/resources/' + identifier, this.options) as Observable<Task[]>;\n  }\n\n  public getAllTasks(collection: string, identifier: string): Map<string, Observable<Task[]>> {\n    const taskMap$ = new Map();\n    this.services.keys().forEach(service => {\n      taskMap$.set(service, this.getServiceTasks(collection, identifier, service));\n    });\n\n    return taskMap$;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Aggregation } from 'arlas-api';\nimport { VisualisationSetConfig } from 'arlas-map';\nimport {\n  ClusterLayerCourceConfig, FeatureLayerSourceConfig, FieldsConfiguration, LayerSourceConfig, TopologyLayerSourceConfig\n} from 'arlas-web-contributors';\n\nexport interface ArlasDashboardConfiguration {\n  arlas?: {\n    web: {\n      contributors: any[];\n      analytics: any[];\n      components: Record<string, any>;\n    };\n    server: {\n      collection: {\n        name: string;\n      };\n    };\n  };\n  extraConfigs?: {\n    configPath: string;\n    replacedAttribute: string;\n    replacer: string;\n  }[];\n}\n\nexport class ArlasConfigurationUpdaterService {\n\n  /**\n   * Parses the configuration and returns a list of contributors that should be removed from the config.\n   * @param data configuration object\n   * @param availableFieldsPerCollection list of fields available for exploration for each collection.\n   * @returns configuration object\n   */\n  public getContributorsToRemove(data: ArlasDashboardConfiguration, availableFieldsPerCollection: Map<string, Set<string>>): Set<string> {\n    const contributorsToRemove = new Set<string>();\n    if (data && data.arlas && data.arlas.web && data.arlas.web.contributors) {\n      /** the conf is validated before; therefore, `arlas.web.contributors` is defined */\n      data.arlas.web.contributors.forEach(contributor => {\n        /** Remove contributors which collection is not available. */\n        if (contributor.collection && !availableFieldsPerCollection.has(contributor.collection)) {\n          contributorsToRemove.add(contributor.identifier);\n        }\n        /** check if aggregation model has a non-available field (in bucket aggregation AND metrics) */\n        if (contributor.aggregationmodels) {\n          if (contributor.collection && availableFieldsPerCollection.has(contributor.collection)) {\n            const availableFields = availableFieldsPerCollection.get(contributor.collection);\n            contributor.aggregationmodels.forEach((am: Aggregation) => {\n              if (!availableFields?.has(am.field)) {\n                contributorsToRemove.add(contributor.identifier);\n              }\n              if (am.metrics) {\n                am.metrics.forEach(m => {\n                  if (!availableFields?.has(m.collect_field)) {\n                    contributorsToRemove.add(contributor.identifier);\n                  }\n                });\n              }\n            });\n          } else {\n            /** The contributor.collection is always defined. However this code is added to secure the case where it could happen.\n             * In that case, the contributor is removed.\n             */\n            contributorsToRemove.add(contributor.identifier);\n          }\n        }\n        /** Compute contributors have metrics */\n        if (contributor.type === 'compute' && contributor.metrics) {\n          if (contributor.collection && availableFieldsPerCollection.has(contributor.collection)) {\n            const availableFields = availableFieldsPerCollection.get(contributor.collection);\n            if (contributor.metrics.find((m: any) => !availableFields?.has(m.field) && m.metric !== 'count')) {\n              contributorsToRemove.add(contributor.identifier);\n            }\n          } else {\n            contributorsToRemove.add(contributor.identifier);\n          }\n        }\n        /** swimlanes contributors have a specific structure for `aggregationmodels`  */\n        if (contributor.type === 'swimlane' && contributor.swimlanes) {\n          if (contributor.collection && availableFieldsPerCollection.has(contributor.collection)) {\n            const availableFields = availableFieldsPerCollection.get(contributor.collection);\n            contributor.swimlanes.forEach((swimlane: any) => {\n              swimlane.aggregationmodels.forEach((am: Aggregation) => {\n                if (!availableFields?.has(am.field)) {\n                  contributorsToRemove.add(contributor.identifier);\n                }\n                if (am.metrics) {\n                  am.metrics.forEach(m => {\n                    if (!availableFields?.has(m.collect_field)) {\n                      contributorsToRemove.add(contributor.identifier);\n                    }\n                  });\n                }\n              });\n              /** swimlanes don't have xAxisField AND termField anymore */\n            });\n          } else {\n            contributorsToRemove.add(contributor.identifier);\n          }\n        }\n\n        /** chipssearch contributor */\n        if ((contributor.type === 'chipssearch' || contributor.type === 'search') && contributor.search_field) {\n          if (contributor.collection && availableFieldsPerCollection.has(contributor.collection)) {\n            const availableFields = availableFieldsPerCollection.get(contributor.collection);\n            if (!availableFields?.has(contributor.search_field)) {\n              contributorsToRemove.add(contributor.identifier);\n            }\n          } else {\n            contributorsToRemove.add(contributor.identifier);\n          }\n        }\n\n        /** resultlist contributor */\n        if (contributor.type === 'resultlist' && contributor.fieldsConfiguration) {\n          if (contributor.collection && availableFieldsPerCollection.has(contributor.collection)) {\n            const availableFields = availableFieldsPerCollection.get(contributor.collection);\n            if (contributor.fieldsConfiguration.idFieldName\n              && !availableFields?.has(contributor.fieldsConfiguration.idFieldName)) {\n              contributorsToRemove.add(contributor.identifier);\n            }\n          } else {\n            contributorsToRemove.add(contributor.identifier);\n          }\n        }\n      });\n      /** remove detailed contributors */\n      data.arlas.web.contributors.filter((contributor: any) => contributor.annexedContributorId).forEach((contributor: any) => {\n        if (contributorsToRemove.has(contributor.annexedContributorId)) {\n          contributorsToRemove.add(contributor.identifier);\n        }\n      });\n      /** remove shortcuts contributors */\n      data.arlas.web.contributors.filter((contributor: any) => contributor.linkedContributorId).forEach((contributor: any) => {\n        if (contributorsToRemove.has(contributor.linkedContributorId)) {\n          contributorsToRemove.add(contributor.identifier);\n        }\n      });\n    }\n    return contributorsToRemove;\n  }\n\n  /**\n   * Removes contributors that have non-available fields\n   * @param data configuration objects\n   * @param contributorsToRemove list of contributors identifiers to remove from the configuration\n   * @returns configuration object\n   */\n  public removeContributors(data: ArlasDashboardConfiguration, contributorsToRemove: Set<string>): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.contributors) {\n      data.arlas.web.contributors = data.arlas.web.contributors.filter((contributor: any) =>\n        !contributorsToRemove.has(contributor.identifier));\n    }\n    return data;\n  }\n\n  /**\n   * Removes widgets that are associated with removed contributors\n   * @param data\n   * @param contributorsToRemove\n   * @returns configuration object\n   */\n  public removeWidgets(data: ArlasDashboardConfiguration, contributorsToRemove: Set<string>): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.analytics) {\n      data.arlas.web.analytics.forEach((widget: any) => {\n        widget.components = widget.components.filter((c: any) => !contributorsToRemove.has(c.contributorId));\n      });\n      data.arlas.web.analytics = data.arlas.web.analytics.filter((widget: any) => widget.components.length > 0);\n    }\n    return data;\n  }\n\n  /**\n   * Removes timelines that are associated with removed timeline contributors\n   * @param data\n   * @param contributorsToRemove\n   * @returns configuration object\n   */\n  public removeTimelines(data: ArlasDashboardConfiguration, contributorsToRemove: Set<string>): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web) {\n      const components = data.arlas.web.components;\n      if (components) {\n        if (components.timeline) {\n          if (contributorsToRemove.has(components.timeline.contributorId)) {\n            delete components.timeline;\n          }\n        }\n        if (components.detailedTimeline) {\n          if (contributorsToRemove.has(components.detailedTimeline.contributorId)) {\n            delete components.detailedTimeline;\n          }\n        }\n      }\n\n    }\n    return data;\n  }\n\n  /**\n   * Add the default collection as the contributor's collection if not present\n   * @param data configuration object\n   * @returns configuration object\n   */\n  public addCollectionIfMissing(data: ArlasDashboardConfiguration) {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.contributors) {\n      for (const contributor of data.arlas.web.contributors) {\n        if (!contributor.collection) {\n          contributor.collection = data.arlas.server.collection.name;\n        }\n      }\n    }\n    return data;\n  }\n\n  /**\n   * Removes the properties -from all contributors- including fields that are not available for exploration\n   * @param data configuration object\n   * @param availableFieldsPerCollection List of available fields for exploration\n   * @returns configuration object\n   */\n  public updateContributors(data: ArlasDashboardConfiguration,\n    availableFieldsPerCollection: Map<string, Set<string>>\n  ): ArlasDashboardConfiguration {\n    // Authorize not indexed fields in list\n    // let updatedConfig = this.updateResultListContributors(data, availableFieldsPerCollection);\n    let updatedConfig = this.updateMapContributors(data, availableFieldsPerCollection);\n    updatedConfig = this.updateHistogramContributors(updatedConfig, availableFieldsPerCollection);\n    updatedConfig = this.updateChipSearchContributors(updatedConfig, availableFieldsPerCollection);\n    return updatedConfig;\n  }\n\n  /**\n   * Removes the properties -from map component - including fields that are not available for exploration\n   * @param data configuration object\n   * @returns configuration object\n   */\n  public updateMapComponent(data: ArlasDashboardConfiguration): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.components) {\n      const mapComponentConfig = data.arlas.web.components.mapgl;\n      if (mapComponentConfig && mapComponentConfig.input) {\n        /** idFieldName is no longer used !! */\n        let layerSources = [];\n        const layerSourcesList: any[] = data.arlas.web.contributors.filter((contributor: any) => contributor.type === 'map')\n          .map((l: any) => l.layers_sources);\n        if (layerSourcesList && layerSourcesList.length > 0) {\n          /** reduce cannot be applied on an empty list. */\n          layerSources = layerSourcesList.reduce((l1, l2) => new Array(...l1, ...l2), []);\n        }\n        /** remove layers from visualisation sets if their correponding source is removed from the contributor */\n        if (layerSources) {\n          const layers = new Set(layerSources.map((ls: any) => ls.id));\n          const visualisationsSet: Array<VisualisationSetConfig> = mapComponentConfig.input.visualisations_sets;\n          if (visualisationsSet) {\n            const updatedVisualisationsSet: Array<VisualisationSetConfig> = [];\n            visualisationsSet.forEach(vs => {\n              vs.layers = vs.layers.filter(l => layers.has(l));\n              if (vs.layers.length > 0) {\n                updatedVisualisationsSet.push(vs);\n              }\n            });\n            mapComponentConfig.input.visualisations_sets = updatedVisualisationsSet;\n          }\n        }\n      }\n    }\n    return data;\n  }\n\n  /**\n   * Removes the properties -from ResultListContributor- that define fields not available for exploration\n   * @param data configuration object\n   * @param availableFieldsPerCollection List of available fields for exploration for each collection.\n   * @returns configuration object\n   * @deprecated\n   */\n  public updateResultListContributors(data: ArlasDashboardConfiguration,\n    availableFieldsPerCollection: Map<string, Set<string>>\n  ): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.contributors) {\n      data.arlas.web.contributors.filter((contributor: any) => contributor.type === 'resultlist').forEach((contributor: any) => {\n        const availableFields = availableFieldsPerCollection.get(contributor.collection) ?? new Set();\n        if (contributor.fieldsConfiguration) {\n          const fc = contributor.fieldsConfiguration as FieldsConfiguration;\n          /** imageFieldName && urlImageTemplate were removed in v20.x.x*/\n          /** remove urlImageTemplate */\n          if (fc.urlImageTemplate) {\n            const url = fc.urlImageTemplate;\n            const eventualField = url.substring(\n              url.lastIndexOf('{') + 1,\n              url.lastIndexOf('}')\n            );\n            if (eventualField && eventualField.length > 0 && !availableFields.has(eventualField)) {\n              delete fc.urlImageTemplate;\n            }\n          }\n          /** remove urlImageTemplates */\n          if (fc.urlImageTemplates) {\n            fc.urlImageTemplates = fc.urlImageTemplates.filter(urlImageTemplate => {\n              const url = urlImageTemplate.url;\n              const eventualField = url.substring(\n                url.lastIndexOf('{') + 1,\n                url.lastIndexOf('}')\n              );\n              const isEventualFieldToRemove = eventualField && eventualField.length > 0 && !availableFields.has(eventualField);\n              const hasFieldToRemove = urlImageTemplate.filter?.field && !availableFields.has(urlImageTemplate.filter?.field);\n              return !isEventualFieldToRemove && !hasFieldToRemove;\n            });\n          }\n          /** remove urlThumbnailTemplate */\n          if (fc.urlThumbnailTemplate) {\n            const url = fc.urlThumbnailTemplate;\n            const eventualField = url.substring(\n              url.lastIndexOf('{') + 1,\n              url.lastIndexOf('}')\n            );\n            if (eventualField && eventualField.length > 0 && !availableFields.has(eventualField)) {\n              delete fc.urlThumbnailTemplate;\n            }\n          }\n          /** remove titleFieldNames.fieldPath */\n          if (fc.titleFieldNames) {\n            fc.titleFieldNames = fc.titleFieldNames.filter(t => availableFields.has(t.fieldPath));\n          }\n          /** remove tooltipFieldNames.fieldPath */\n          if (fc.tooltipFieldNames) {\n            fc.tooltipFieldNames = fc.tooltipFieldNames.filter(t => availableFields.has(t.fieldPath));\n          }\n          /** remove iconCssClass */\n          if (fc.iconCssClass && !availableFields.has(fc.iconCssClass)) {\n            delete fc.iconCssClass;\n          }\n          /** remove iconColorFieldName */\n          if (fc.iconColorFieldName && !availableFields.has(fc.iconColorFieldName)) {\n            delete fc.iconColorFieldName;\n          }\n        }\n        /** remove columns */\n        if (contributor.columns) {\n          contributor.columns = contributor.columns.filter((c: any) => availableFields.has(c.fieldName));\n        }\n        /** remove details */\n        if (contributor.details) {\n          contributor.details.forEach((detail: any) => {\n            if (detail.fields) {\n              detail.fields = detail.fields.filter((field: any) => availableFields.has(field.path));\n            }\n          });\n          contributor.details = contributor.details.filter((detail: any) => (detail.fields && detail.fields.length > 0));\n        }\n        /** remove attachments */\n        if (contributor.attachments) {\n          contributor.attachments = contributor.attachments.filter((a: any) => availableFields.has(a.attachmentsField) &&\n            availableFields.has(a.attachementUrlField));\n        }\n        /** remove metadata fields */\n        if (contributor.includeMetadata) {\n          contributor.includeMetadata = contributor.includeMetadata.filter((f: string) => availableFields.has(f));\n        }\n      });\n    }\n    return data;\n  }\n\n  /**\n   * Removes the properties -from HistogramContributor- that define fields not available for exploration\n   * @param data configuration object\n   * @param availableFieldsPerCollection List of available fields for exploration for each collection.\n   * @returns configuration object\n   */\n  public updateHistogramContributors(data: ArlasDashboardConfiguration,\n    availableFieldsPerCollection: Map<string, Set<string>>\n  ): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.contributors) {\n      data.arlas.web.contributors.filter((contributor: any) => contributor.type === 'histogram' ||\n        contributor.type === 'detailedhistogram'\n      ).forEach((contributor: any) => {\n        if (contributor.additionalCollections) {\n          contributor.additionalCollections = contributor.additionalCollections.filter((ac: any) => {\n            const availableFields = availableFieldsPerCollection.get(ac.collectionName);\n            const hasCollection = availableFieldsPerCollection.has(ac.collectionName);\n            const hasField = hasCollection && availableFields?.has(ac.field);\n            return hasField;\n          });\n        }\n      });\n    }\n    return data;\n  }\n\n\n\n\n  /**\n   * Removes the properties -from MapConributor- that define fields not available for exploration\n   * @param data configuration object\n   * @param availableFieldsPerCollection List of available fields for exploration for each collection.\n   * @returns configuration object\n   */\n  public updateMapContributors(data: ArlasDashboardConfiguration,\n    availableFieldsPerCollection: Map<string, Set<string>>\n  ): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.contributors) {\n      data.arlas.web.contributors.filter((contributor: any) => contributor.type === 'map').forEach((contributor: any) => {\n        const availableFields = availableFieldsPerCollection.get(contributor.collection) ?? new Set();\n        if (contributor.layers_sources) {\n          const updatedLayersSources: Array<LayerSourceConfig> = [];\n          contributor.layers_sources.forEach((ls: LayerSourceConfig) => {\n            let keepLs = true;\n\n            // CONFIGURATION OF FEATURE\n            const featureLS = ls as FeatureLayerSourceConfig;\n            if (featureLS.include_fields) {\n              featureLS.include_fields = featureLS.include_fields.filter(f => availableFields.has(f));\n            }\n            if (featureLS.colors_from_fields) {\n              featureLS.colors_from_fields = featureLS.colors_from_fields.filter(f => availableFields.has(f));\n            }\n            if (featureLS.normalization_fields) {\n              featureLS.normalization_fields = featureLS.normalization_fields.filter(f =>\n                availableFields.has(f.on) && (!f.per || availableFields.has(f.per)));\n            }\n            if (featureLS.provided_fields) {\n              featureLS.provided_fields = featureLS.provided_fields.filter(f =>\n                availableFields.has(f.color) && (!f.label || availableFields.has(f.label)));\n            }\n\n            const topologyLS = ls as TopologyLayerSourceConfig;\n            if (topologyLS.metrics) {\n              topologyLS.metrics = topologyLS.metrics.filter(f => f.field === '' || availableFields.has(f.field));\n            }\n\n            const clusterLS = ls as ClusterLayerCourceConfig;\n            keepLs = !clusterLS.agg_geo_field || (!!clusterLS.agg_geo_field && availableFields.has(clusterLS.agg_geo_field));\n            if (keepLs) {\n              keepLs = !clusterLS.raw_geometry || (clusterLS.raw_geometry && availableFields.has(clusterLS.raw_geometry.geometry));\n            }\n            if (keepLs && clusterLS.raw_geometry?.sort) {\n              clusterLS.raw_geometry.sort = clusterLS.raw_geometry.sort.split(',').filter(s => availableFields.has(s.replace('-', ''))).join(',');\n              if (clusterLS.raw_geometry.sort === '') {\n                delete clusterLS.raw_geometry.sort;\n              }\n            }\n            if (keepLs) {\n              keepLs = !featureLS.returned_geometry || (!!featureLS.returned_geometry && availableFields.has(featureLS.returned_geometry));\n            }\n            if (keepLs) {\n              keepLs = !topologyLS.geometry_id || (!!topologyLS.geometry_id && availableFields.has(topologyLS.geometry_id));\n            }\n            if (keepLs) {\n              keepLs = !topologyLS.geometry_support || (!!topologyLS.geometry_support && availableFields.has(topologyLS.geometry_support));\n            }\n            if (keepLs) {\n              updatedLayersSources.push(ls);\n            }\n          });\n          contributor.layers_sources = updatedLayersSources;\n        }\n        if (contributor.geo_query_field && !availableFields.has(contributor.geo_query_field)) {\n          delete contributor.geo_query_field;\n        }\n        if (contributor.search_sort) {\n          contributor.search_sort = contributor.search_sort.split(',').filter((s: string) => availableFields.has(s.replace('-', ''))).join(',');\n          if (contributor.search_sort === '') {\n            delete contributor.search_sort;\n          }\n        }\n      });\n    }\n    return data;\n  }\n\n  /**\n   * Removes the properties -from SearchContributor- that define fields not available for exploration\n   * @param data configuration object\n   * @param availableFieldsPerCollection List of available fields for exploration for each collection.\n   * @returns configuration object\n   */\n  public updateChipSearchContributors(data: ArlasDashboardConfiguration,\n    availableFieldsPerCollection: Map<string, Set<string>>\n  ): ArlasDashboardConfiguration {\n    if (data && data.arlas && data.arlas.web && data.arlas.web.contributors) {\n      data.arlas.web.contributors\n        .filter((contributor: any) => contributor.type === 'chipssearch' || contributor.type === 'search').forEach((contributor: any) => {\n          const availableFields = availableFieldsPerCollection.get(contributor.collection);\n          if (contributor.autocomplete_field && !availableFields?.has(contributor.autocomplete_field)) {\n            delete contributor.autocomplete_field;\n          }\n        });\n    }\n    return data;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { AuthConfig, OAuthErrorEvent, OAuthEvent, OAuthService, OAuthStorage, UserInfo } from 'angular-oauth2-oidc';\nimport { BehaviorSubject, Observable, ReplaySubject, combineLatest, filter, firstValueFrom, from, map } from 'rxjs';\nimport { AuthentSetting, CONFIG_ID_QUERY_PARAM, NOT_CONFIGURED, generateUserCacheBust } from '../../tools/utils';\nimport { ArlasAuthentificationService } from '../arlas-authentification/arlas-authentification.service';\n\n\nexport class CustomMemoryStorage implements OAuthStorage {\n  private storage: Storage;\n  private data = new Map<string, string>();\n\n  public constructor(storage: Storage) {\n    this.storage = storage;\n  }\n  private needsExternalStorage(key: string) {\n    // Those three keys must be in external storage to stay logged at refresh with KC, but it's not sensible data\n    return key === 'nonce' || key === 'PKCE_verifier' || key === 'refresh_token';\n  }\n  public getItem(key: string) {\n    if (this.needsExternalStorage(key)) {\n      return this.storage.getItem(key);\n    }\n    return this.data.get(key) ?? null;\n  }\n  public removeItem(key: string) {\n    if (this.needsExternalStorage(key)) {\n      return this.storage.removeItem(key);\n    }\n    this.data.delete(key);\n  }\n  public setItem(key: string, data: string) {\n    if (this.needsExternalStorage(key)) {\n      return this.storage.setItem(key, data);\n    }\n    this.data.set(key, data);\n  }\n}\n\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class AuthentificationService extends ArlasAuthentificationService {\n\n  public authConfig?: AuthConfig;\n  private readonly _isAuthenticated$ = new BehaviorSubject<boolean>(false);\n  public readonly isAuthenticated$ = this._isAuthenticated$.asObservable();\n  private readonly _isDoneLoading$ = new ReplaySubject<boolean>();\n  public readonly isDoneLoading$ = this._isDoneLoading$.asObservable();\n\n  /**\n   * Publishes `true` if and only if (a) all the asynchronous initial\n   * login calls have completed or errorred, and (b) the user ended up\n   * being authenticated.\n   *\n   * In essence, it combines:\n   *\n   * - the latest known state of whether the user is authorized\n   * - whether the ajax calls for initial log in have all been done\n   */\n  public canActivateProtectedRoutes: Observable<boolean> = combineLatest(\n    this.isAuthenticated$,\n    this.isDoneLoading$\n  ).pipe(map(values => values.every(b => b)));\n\n  public constructor(\n    private readonly oauthService: OAuthService,\n    private readonly http: HttpClient\n  ) {\n    super();\n  }\n\n  public refreshErrors$() {\n    const refreshErrors = new Set(['silent_refresh_error', 'silent_refresh_timeout', 'token_refresh_error']);\n    return this.oauthService.events.pipe(\n      filter(e => e instanceof OAuthErrorEvent),\n      filter(e => refreshErrors.has(e.type))\n    );\n  }\n\n  public initAuthService(): Promise<void> {\n    if (this.authSettings) {\n      if (this.authSettings.use_authent) {\n        const storage = this.authSettings['storage'] === 'localstorage' ? localStorage :\n          this.authSettings['storage'] === 'sessionstorage' ? sessionStorage : new CustomMemoryStorage(sessionStorage);\n        if (this.authSettings.use_discovery || this.authSettings['jwks_endpoint'] === undefined) {\n          this.authConfig = this.getAuthConfig(this.authSettings);\n          this.setupAuthService(storage);\n          return this.runInitialLoginSequence(this.authSettings.use_discovery, this.authSettings.force_connect);\n        } else {\n          // Call jwks endpoint to set in config\n          if (this.authSettings['token_endpoint'] && this.authSettings['userinfo_endpoint']\n            && this.authSettings['login_url'] && this.authSettings['jwks_endpoint']) {\n            return firstValueFrom(this.http.get(this.authSettings['jwks_endpoint']))\n              .then(jwks => {\n                this.authConfig = this.getAuthConfig(this.authSettings, jwks);\n                this.setupAuthService(storage);\n                return this.runInitialLoginSequence(false, this.authSettings.force_connect);\n              });\n          } else {\n            console.error('Authentication config error : if useDiscovery ' +\n              'is set to false in configuration, tokenEndpoint, userinfoEndpoint, loginUrl and jwksEndpoint must be defined.');\n            return Promise.reject(new Error('Authentication config error'));\n          }\n        }\n      }\n    }\n    return Promise.resolve();\n  }\n\n  public runInitialLoginSequence(useDiscovery?: boolean, forceConnect?: boolean): Promise<void> {\n    let startToLogin: Promise<any>;\n    if (useDiscovery) {\n      startToLogin = this.oauthService.loadDiscoveryDocument()\n        .then(() => this.oauthService.tryLogin());\n    } else {\n      startToLogin = this.oauthService.tryLogin();\n    }\n    return startToLogin\n      .then(() => {\n        if (this.oauthService.hasValidAccessToken()) {\n          return Promise.resolve();\n        }\n        return this.oauthService.refreshToken()\n          .then(() => Promise.resolve())\n          .catch(result => {\n            if (forceConnect) {\n              this.oauthService.initLoginFlow();\n              console.warn('User interaction is needed to log in, we will wait for the user to manually log in.');\n              return Promise.resolve();\n            }\n            return Promise.reject(result);\n          });\n      })\n      .then(() => {\n        this._isDoneLoading$.next(true);\n      })\n      .catch(() => this._isDoneLoading$.next(true));\n  }\n\n\n  public login() {\n    this.oauthService.initLoginFlow();\n  }\n  public logout() {\n    this.oauthService.logOut();\n    this.emitSessionEnd();\n  }\n  public refresh() {\n    this.oauthService.refreshToken();\n  }\n  public hasValidAccessToken() {\n    return this.oauthService.hasValidAccessToken();\n  }\n  public hasValidIdToken() {\n    return this.oauthService.hasValidIdToken();\n  }\n  public get accessToken() {\n    return this.oauthService.getAccessToken();\n  }\n  public get identityClaims() {\n    return this.oauthService.getIdentityClaims();\n  }\n  public get idToken() {\n    return this.oauthService.getIdToken();\n  }\n  public get logoutUrl() {\n    return this.oauthService.logoutUrl;\n  }\n  public isAuthenticated() {\n    return this._isAuthenticated$.getValue();\n  }\n\n  public areSettingsValid(authentSetting: AuthentSetting): [boolean, string] {\n    let valid = true;\n    const missingInfo = [];\n    if (authentSetting && authentSetting.use_authent) {\n\n      if (!authentSetting.client_id || authentSetting.client_id === NOT_CONFIGURED) {\n        valid = false;\n        missingInfo.push('- `client_id` must be configured when `auth_mode=openid`');\n      }\n      if (!authentSetting.issuer || authentSetting.issuer === NOT_CONFIGURED) {\n        valid = false;\n        missingInfo.push('- `issuer` must be configured when `auth_mode=openid`');\n      }\n      if (!authentSetting.scope || authentSetting.scope === NOT_CONFIGURED) {\n        valid = false;\n        missingInfo.push('- `scope` must be configured when `auth_mode=openid`');\n      }\n      if (!authentSetting.response_type || authentSetting.response_type === NOT_CONFIGURED) {\n        valid = false;\n        missingInfo.push('- `response_type` must be configured when `auth_mode=openid`');\n      }\n      if (authentSetting.use_discovery === false) {\n        if (!authentSetting.login_url || authentSetting.login_url === NOT_CONFIGURED) {\n          valid = false;\n          missingInfo.push('- `login_url`  must be configured when `use_discovery=false`');\n        }\n        if (!authentSetting.token_endpoint || authentSetting.token_endpoint === NOT_CONFIGURED) {\n          valid = false;\n          missingInfo.push('- `token_endpoint` must be configured when `use_discovery=false`');\n        }\n        if (!authentSetting.jwks_endpoint || authentSetting.jwks_endpoint === NOT_CONFIGURED) {\n          valid = false;\n          missingInfo.push('- `jwks_endpoint` must be configured when `use_discovery=false`');\n        }\n        if (!authentSetting.userinfo_endpoint || authentSetting.userinfo_endpoint === NOT_CONFIGURED) {\n          valid = false;\n          missingInfo.push('- `userinfo_endpoint` must be configured when `use_discovery=false`');\n        }\n      }\n\n    }\n    return [valid, missingInfo.join('\\n')];\n  }\n\n  /**\n   * Return an observable of the user Auth0 profile\n   */\n  public loadUserInfo(): Observable<UserInfo> {\n    return from(<Promise<UserInfo>>this.oauthService.loadUserProfile());\n  }\n\n  private setupAuthService(storage: OAuthStorage) {\n    this.oauthService.setStorage(storage);\n\n    if (this.authConfig) {\n      this.oauthService.configure(this.authConfig);\n      // Useful for debugging:\n      if (this.authConfig['showDebugInformation']) {\n        this.oauthService.events.subscribe(event => {\n          if (event instanceof OAuthErrorEvent) {\n            console.error(event);\n          } else {\n            console.warn(event);\n          }\n        });\n      }\n    }\n    this.oauthService.events.subscribe((event: OAuthEvent) => {\n      if (event.type === 'token_received') {\n        const claims = this.oauthService.getIdentityClaims() as { sub?: string; };\n        if (claims?.sub) {\n          // Derive a deterministic cache-busting key from the OIDC subject claim (stable unique user identifier)\n          // This ensures cached responses are scoped per user while remaining reusable across sessions\n          const cacheBust = generateUserCacheBust(claims.sub);\n          sessionStorage.setItem('cache_bust', cacheBust);\n        }\n      }\n      if (event.type === 'logout') {\n        // Clear the cache-busting token on logout to avoid stale values on next login\n        sessionStorage.removeItem('cache_bust');\n      }\n    });\n\n    this.oauthService.events.pipe(filter(e => e.type !== 'session_unchanged'))\n      .subscribe(e => {\n        this._isAuthenticated$.next(this.oauthService.hasValidAccessToken());\n      });\n    this.oauthService.setupAutomaticSilentRefresh();\n  }\n\n\n  private getAuthConfig(authConfigValue: AuthentSetting, jwks?: any): AuthConfig {\n    let authServiceConfig: AuthConfig = {};\n    let url = window.location.origin.concat(window.location.pathname);\n    if (url.slice(-1) !== '/') {\n      url = url.concat('/');\n    }\n    if (authConfigValue) {\n      authServiceConfig = {\n        clientId: authConfigValue['client_id'],\n        issuer: authConfigValue['issuer'],\n        scope: authConfigValue['scope'],\n        responseType: authConfigValue['response_type'],\n        redirectUri: (authConfigValue['redirect_uri'] !== undefined && authConfigValue['redirect_uri'] !== NOT_CONFIGURED) ?\n          authConfigValue['redirect_uri'] : url + 'callback',\n        silentRefreshRedirectUri: (authConfigValue['silent_refresh_redirect_uri'] !== undefined\n          && authConfigValue['silent_refresh_redirect_uri'] !== NOT_CONFIGURED) ?\n          authConfigValue['silent_refresh_redirect_uri'] : url + 'silent-refresh.html',\n        timeoutFactor: authConfigValue['timeout_factor'] !== undefined ? authConfigValue['timeout_factor'] : 0.75,\n        sessionChecksEnabled: authConfigValue['session_checks_enabled'] !== undefined ? authConfigValue['session_checks_enabled'] : true,\n        showDebugInformation: authConfigValue['show_debug_information'] !== undefined ? authConfigValue['show_debug_information'] : false,\n        silentRefreshTimeout: authConfigValue['silent_refresh_timeout'] !== undefined ? authConfigValue['silent_refresh_timeout'] : 5000,\n        clearHashAfterLogin: authConfigValue['clear_hash_after_login'] !== undefined ? authConfigValue['clear_hash_after_login'] : false,\n        disableAtHashCheck: authConfigValue['disable_at_hash_check'] !== undefined ? authConfigValue['disable_at_hash_check'] : false,\n        requireHttps: authConfigValue['require_https'] !== undefined ? authConfigValue['require_https'] : true\n      };\n      if (authConfigValue['post_logout_redirect_uri'] !== undefined && authConfigValue['post_logout_redirect_uri'] !== NOT_CONFIGURED) {\n        authServiceConfig.postLogoutRedirectUri = authConfigValue['post_logout_redirect_uri'];\n      }\n      if (authConfigValue['dummy_client_secret'] !== undefined && authConfigValue['dummy_client_secret'] !== NOT_CONFIGURED) {\n        authServiceConfig.dummyClientSecret = authConfigValue['dummy_client_secret'];\n      }\n      if (authConfigValue['custom_query_params'] !== undefined && (authConfigValue['custom_query_params'] as any) !== NOT_CONFIGURED) {\n        const customQueryParams: Record<string, any> = {};\n        authConfigValue['custom_query_params'].forEach(obj => {\n          for (const [key, value] of Object.entries(obj)) {\n            customQueryParams[key] = value;\n          }\n        });\n        authServiceConfig.customQueryParams = customQueryParams;\n      }\n      if (authConfigValue['logout_url'] !== undefined && authConfigValue['logout_url'] !== NOT_CONFIGURED) {\n        authServiceConfig.logoutUrl = authConfigValue['logout_url'];\n      }\n      if (!authConfigValue['use_discovery']) {\n        authServiceConfig.tokenEndpoint = authConfigValue['token_endpoint'];\n        authServiceConfig.userinfoEndpoint = authConfigValue['userinfo_endpoint'];\n        authServiceConfig.loginUrl = authConfigValue['login_url'];\n        if (jwks !== undefined) {\n          authServiceConfig['jwks'] = jwks;\n        }\n      }\n    }\n    // Apend arlas query parameters in the redirectUrl\n    const queryParam =\n      this.getQueryParam(CONFIG_ID_QUERY_PARAM) +\n      this.getQueryParam('filter') +\n      this.getQueryParam('extend') +\n      this.getQueryParam('lg') +\n      this.getQueryParam('rt') +\n      this.getQueryParam('vs') +\n      this.getQueryParam('at') +\n      this.getQueryParam('ao') +\n      this.getQueryParam('to') +\n      this.getQueryParam('ro');\n    if (queryParam !== '') {\n      // remove last &\n      authServiceConfig.redirectUri = authServiceConfig.redirectUri + '?' + encodeURI(queryParam.slice(0, -1));\n    }\n    return authServiceConfig;\n  }\n\n  private getQueryParam(param: string) {\n    const value = (new URL(window.location.href)).searchParams.get(param);\n    if (value) {\n      return param.concat('=').concat(value).concat('&');\n    } else {\n      return '';\n    }\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, DestroyRef, inject, Inject, OnInit } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { Router } from '@angular/router';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../../services/authentification/authentification.service';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\nimport { ArlasError } from '../../tools/errors/error';\nimport { DeniedAccessData } from '../../tools/utils';\n\n@Component({\n  selector: 'arlas-denied-access-dialog',\n  templateUrl: './denied-access-dialog.component.html',\n  styleUrls: ['./denied-access-dialog.component.scss'],\n  imports: [\n    TranslatePipe,\n    MatDialogModule,\n    MatIconModule,\n    MatButtonModule\n  ]\n})\nexport class DeniedAccessDialogComponent implements OnInit {\n\n  private isAuthentActivated: boolean;\n  private authentMode: 'openid' | 'iam' | undefined;\n\n  public forceAction = false;\n  public arlasError: ArlasError;\n\n  private readonly destroyRef = inject(DestroyRef);\n  public constructor(\n    @Inject(MAT_DIALOG_DATA) data: DeniedAccessData,\n    private readonly settingsService: ArlasSettingsService,\n    private readonly authentService: AuthentificationService,\n    private readonly arlasIamService: ArlasIamService,\n    private readonly dialog: MatDialogRef<DeniedAccessDialogComponent>,\n    private readonly router: Router\n  ) {\n    const authSettings = this.settingsService.getAuthentSettings();\n    this.authentMode = authSettings ? authSettings.auth_mode : undefined;\n    this.isAuthentActivated = !!authSettings && !!authSettings.use_authent;\n    if (this.isAuthentActivated && !this.authentMode) {\n      this.authentMode = 'openid';\n    }\n\n    this.arlasError = data.error;\n    this.forceAction = !!data.forceAction;\n  }\n\n  public ngOnInit() {\n    this.arlasError.actionSeeker$\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe({\n        next: (type) => {\n          if (type === 'login') {\n            this.login();\n            this.dialog.close();\n          }\n        }\n      });\n  }\n\n  private login() {\n    if (this.authentMode === 'openid') {\n      this.authentService.login();\n    } else if (this.authentMode === 'iam') {\n      this.checkIamCurrentUrl();\n      this.router.navigate(['login']);\n    }\n  }\n\n\n  private checkIamCurrentUrl() {\n    const url = new URL(window.location.href);\n    const paramOrg = url.searchParams.get('org');\n    const paramConfigId = url.searchParams.get('config_id');\n    // it meanse it's arlas-wui, we will ask to login in arlas-wui ignoring the\n    // login_uri, because after login we can go back to previous state !\n    if (paramOrg && paramConfigId) {\n      this.arlasIamService.declareReloadState(window.location.href);\n    }\n  }\n\n}\n","<div mat-dialog-title class=\"title\">{{arlasError.title| translate}}</div>\n<mat-dialog-content class=\"content\">\n  <div class=\"errored\">\n    <div><mat-icon class=\"icon\">error</mat-icon></div>\n    <div class=\"state\">{{arlasError.message | translate:{service: $any(arlasError)?.service | translate} }}</div>\n    @if (arlasError.showAction) {\n      <button matButton=\"filled\" color=\"primary\" [class.action]=\"arlasError.actionType === 'link'\" (click)=\"arlasError.executeAction()\">\n        {{ arlasError.actionMessage | translate }}\n      </button>\n    }\n  </div>\n</mat-dialog-content>\n\n@if (!forceAction) {\n  <mat-dialog-actions class=\"actions\">\n    <button matButton=\"outlined\" [mat-dialog-close]=\"true\">{{'Close' | translate}}</button>\n  </mat-dialog-actions>\n}","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, Inject } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { AuthentificationService } from '../../services/authentification/authentification.service';\n\n@Component({\n  selector: 'arlas-tool-reconnect-dialog',\n  templateUrl: './reconnect-dialog.component.html',\n  styleUrls: ['./reconnect-dialog.component.scss'],\n  imports: [\n    TranslatePipe,\n    MatDialogModule,\n    MatButtonModule\n  ]\n})\nexport class ReconnectDialogComponent {\n  public code: number;\n\n  public constructor(\n    private readonly authentService: AuthentificationService,\n    @Inject(MAT_DIALOG_DATA) data: { code: number; }\n  ) {\n    this.code = data.code;\n  }\n\n  public login() {\n    this.authentService.login();\n  }\n\n  public logout() {\n    this.authentService.logout();\n  }\n}\n","@if (code === 401) {\n  <div class=\"code-401\">\n    <h2 mat-dialog-title>{{'Disconnected' | translate}}</h2>\n    <mat-dialog-content>{{'You are no longer logged in. Would you like to log in again?'| translate}}</mat-dialog-content>\n    <mat-dialog-actions>\n      <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->\n      <button matButton=\"filled\" color=\"primary\" class=\"modal_button\" color=\"primary\" (click)=\"login()\" [mat-dialog-close]=\"true\">{{'Log in' | translate}}</button>\n      <button matButton=\"outlined\" class=\"modal_button\" (click)=\"logout()\" [mat-dialog-close]=\"true\">{{'No' | translate}}</button>\n    </mat-dialog-actions>\n  </div>\n} @else if (code === 403) {\n  <div class=\"code-403\">\n    <h2 mat-dialog-title>{{'Unauthorized action' | translate}}</h2>\n    <mat-dialog-content>{{'You are not authorized to access this resource.'| translate}}</mat-dialog-content>\n    <mat-dialog-actions>\n      <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->\n      <button matButton=\"filled\" color=\"primary\" class=\"modal_button\" color=\"primary\" [mat-dialog-close]=\"true\">{{'OK' | translate}}</button>\n    </mat-dialog-actions>\n  </div>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Observable, Subject } from 'rxjs';\n\n/** Generic error for Arlas */\nexport abstract class ArlasError {\n\n  protected actionSeekerSource: Subject<any> = new Subject();\n  public actionSeeker$: Observable<any> = this.actionSeekerSource.asObservable();\n\n  protected status: number;\n  public title: string;\n  public message: string;\n\n  public showAction = false;\n  public actionMessage?: string;\n  public actionType?: ActionType;\n\n  public constructor(status: number, title: string, message: string) {\n    this.status = status;\n    this.title = title;\n    this.message = message;\n  }\n\n  public abstract executeAction(): void;\n}\n\nexport type ActionType = 'link' | 'button';\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { ArlasError } from './error';\n\n/** Error sent when the user lacks authorization to view something */\nexport class AuthorisationError extends ArlasError {\n  public constructor(status: number) {\n    const title = marker('Could not access the service');\n\n    let message: string = marker('Unknown error');\n    let showAction = false;\n    if (status === 403) {\n      message = marker('acces forbidden');\n    } else if (status === 401) {\n      message = marker('access not authorized');\n      showAction = true;\n    }\n\n    super(status, title, message);\n    this.showAction = showAction;\n    this.actionMessage = marker('Log in');\n\n    if (this.showAction) {\n      this.actionType = 'button';\n    }\n  }\n\n  public executeAction() {\n    this.actionSeekerSource.next('login');\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { AuthorisationError } from './authorisation-error';\n\n/** Error sent when the user lacks authorization to do something */\nexport class AuthorisationOnActionError extends AuthorisationError {\n\n  public constructor(status: number, message: string, forceAction?: boolean) {\n    super(status);\n\n    this.title = marker('Action unauthorized');\n    this.message = message;\n\n    if (forceAction) {\n      this.showAction = true;\n    }\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { ArlasError } from './error';\n\n\nexport class BackendError extends ArlasError {\n  public constructor(\n    status: number,\n    message: string,\n    private readonly hubUrl?: string,\n    public service?: string\n  ) {\n    const title = marker('ARLAS encountered an error');\n\n    let showAction = false;\n    if (status === 400 || status === 404) {\n      showAction = true;\n    } else if (status === 502) {\n      message = marker('The connection is lost');\n    } else if (status === 503) {\n      message = marker('The service is unavailable');\n    } else {\n      message = marker('An error occured in the service');\n    }\n\n    super(status, title, message);\n    this.showAction = showAction && !!hubUrl;\n\n    if (this.showAction) {\n      this.actionMessage = marker('go to arlas hub');\n      this.actionType = 'link';\n    }\n  }\n\n  public executeAction() {\n    this.goToArlasHub();\n  }\n\n  private goToArlasHub() {\n    if (this.hubUrl) {\n      window.open(this.hubUrl, '_self');\n    }\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { ArlasError } from './error';\n\n/** Error sent when the dashboard is invalid */\nexport class InvalidDashboardError extends ArlasError {\n  public constructor(private readonly hubUrl: string | undefined, message: string) {\n    const title = marker('Dashboard is invalid');\n    super(0, title, message);\n\n    this.actionType = 'link';\n    this.showAction = !!hubUrl;\n    this.actionMessage = marker('go to arlas hub');\n  }\n\n  public executeAction() {\n    this.goToArlasHub();\n  }\n\n  private goToArlasHub() {\n    if (this.hubUrl) {\n      window.open(this.hubUrl, '_self');\n    }\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { ArlasError } from './error';\n\n/** Error sent when the settings.yaml file is invalid */\nexport class SettingsError extends ArlasError {\n  public constructor() {\n    const title = marker('ARLAS Front-end Settings error');\n    const message = marker('Please check if the settings.yaml file is provided and has a valid syntax');\n    super(0, title, message);\n\n    this.showAction = false;\n    this.actionMessage = '';\n  }\n\n  public executeAction() {\n    return;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Subscription } from 'rxjs';\nimport { DeniedAccessDialogComponent } from '../../components/denied-access-dialog/denied-access-dialog.component';\nimport { ReconnectDialogComponent } from '../../components/reconnect-dialog/reconnect-dialog.component';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\nimport { AuthorisationError } from '../../tools/errors/authorisation-error';\nimport { AuthorisationOnActionError } from '../../tools/errors/authorisation-on-action-error';\nimport { BackendError } from '../../tools/errors/backend-error';\nimport { InvalidDashboardError } from '../../tools/errors/invalid-dashboard-error';\nimport { SettingsError } from '../../tools/errors/settings-error';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ErrorService {\n\n  private arlasErrorsSubscription?: Subscription;\n\n  public constructor(\n    private readonly dialog: MatDialog,\n    private readonly settingsService: ArlasSettingsService,\n    private readonly arlasCollaborationService: ArlasCollaborativesearchService,\n    private readonly snackBar: MatSnackBar,\n    private readonly translate: TranslateService\n  ) { }\n\n  public emitAuthorisationError(error: AuthorisationError, forceAction = true) {\n    if (!this.dialog.openDialogs || this.dialog.openDialogs.length === 0) {\n      this.dialog.open(DeniedAccessDialogComponent, {\n        disableClose: true, data: {\n          error,\n          forceAction\n        },\n        panelClass: 'arlas-error-dialog'\n      });\n    }\n  }\n\n  /**\n   * Displays a dialog asking the user to login again after their session expired\n   * @param code 401 or 403\n   */\n  public emitSessionExpiredError(code: number) {\n    if (!this.dialog.openDialogs || this.dialog.openDialogs.length === 0) {\n      this.dialog.open(ReconnectDialogComponent, {\n        disableClose: true,\n        data: { code },\n        backdropClass: 'reconnect-dialog',\n        panelClass: 'reconnect-dialog-panel'\n      });\n    }\n  }\n\n  public emitUnavailableService(service: string) {\n    this.emitAuthorisationError(new BackendError(502, '', this.settingsService.getArlasHubUrl(), service), true);\n  }\n\n  public emitSettingsError() {\n    this.emitAuthorisationError(new SettingsError(), true);\n  }\n\n  public emitBackendError(status: number, message: string, service: string, mode: 'snackbar' | 'dialog' = 'dialog') {\n    if (mode === 'dialog') {\n      this.emitAuthorisationError(new BackendError(status, message, this.settingsService.getArlasHubUrl(), service), true);\n    } else if (mode === 'snackbar') {\n      this.snackBar.open(message, this.translate.instant('Close'), { panelClass: 'arlas-error-snackbar' });\n    }\n  }\n\n  public emitInvalidDashboardError(forceAction: boolean, message: string) {\n    this.emitAuthorisationError(new InvalidDashboardError(this.settingsService.getArlasHubUrl(), message), forceAction);\n  }\n\n  public emitUnauthorizedActionError(status: number, message: string, forceAction: boolean) {\n    this.emitAuthorisationError(new AuthorisationOnActionError(status, message, forceAction), forceAction);\n  }\n\n  public closeAll() {\n    this.dialog.closeAll();\n    return this.dialog;\n  }\n\n  public listenToArlasCollaborativeErrors() {\n    this.arlasErrorsSubscription = this.arlasCollaborationService.collaborationErrorBus.subscribe((e: any) => {\n      if (e.status >= 400) {\n        this.emitBackendError(e.status, e.message, marker('ARLAS-server'));\n      } else if (!e.status) {\n        // In case ARLAS-server got down during the use of the app\n        this.emitUnavailableService(marker('ARLAS-server'));\n      }\n    });\n  }\n\n  public unlistenToArlasCollaborativeErrors() {\n    this.arlasErrorsSubscription?.unsubscribe();\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport fetchIntercept from 'fetch-intercept';\nimport { ErrorService } from '../../services/error/error.service';\nimport { AuthorisationError } from '../../tools/errors/authorisation-error';\nimport { ArlasIamService } from '../arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../authentification/authentification.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class FetchInterceptorService {\n  public constructor(\n    private readonly arlasSettings: ArlasSettingsService,\n    private readonly errorService: ErrorService,\n    private readonly router: Router,\n    private readonly authService: AuthentificationService,\n    private readonly iamService: ArlasIamService\n  ) { }\n\n  public interceptLogout() {\n    const settings = this.arlasSettings.settings;\n    if (settings.authentication?.auth_mode === 'iam') {\n      this.router.navigate(['login']);\n    } else {\n      this.errorService.emitAuthorisationError(new AuthorisationError(401));\n    }\n  }\n\n  /**\n   * Intercepts any errored fetch request.\n   * If the url of the request has been whitelisted, then any potential error is ignored.\n   */\n  public applyInterceptor() {\n    const settings = this.arlasSettings.settings;\n    const useAuthent = !!settings && !!settings.authentication && !!settings.authentication.use_authent;\n    const useAuthentOpenID = useAuthent && settings.authentication?.auth_mode !== 'iam';\n    const useAuthentIam = useAuthent && settings.authentication?.auth_mode === 'iam';\n    if (useAuthent) {\n      fetchIntercept.register({\n        request: (url, config) => {\n          let hasValidAccessToken = false;\n          if (useAuthentOpenID) {\n            hasValidAccessToken = this.authService.hasValidAccessToken();\n          } else if (useAuthentIam) {\n            hasValidAccessToken = this.iamService.isAuthenticated();\n          }\n          // add bust params to all Http requests\n          if (hasValidAccessToken && typeof url === 'string') {\n            const bust = sessionStorage.getItem('cache_bust') ?? Date.now();\n            const separator = url.includes('?') ? '&' : '?';\n            url = url + separator + '_cb=' + bust.toString();\n          }\n          return [url, config];\n        }\n        ,\n        requestError: (error) => Promise.reject(error),\n        response: (response) => {\n          // Skip errors if url is whitelisted\n          if (settings?.whitelistedUrls?.some(whitelisted => response.url.startsWith(whitelisted))) {\n            return response;\n          }\n\n          // Modify the reponse object\n          let code = response.status;\n          if (code === 401 || code === 403) {\n            // Check if the response comes from a call to a non arlas public uri\n            if (response.headers.has('WWW-Authenticate')) {\n              code = 403;\n            }\n            if (settings.authentication?.auth_mode === 'iam') {\n              // If not currently logging in, display error\n              if (this.router.url !== '/login') {\n                this.errorService.emitAuthorisationError(new AuthorisationError(code));\n              }\n            } else if (settings.authentication?.use_authent && this.authService.isAuthenticated() && !this.authService.hasValidAccessToken()) {\n              // This handles the case of the user is authenticated but the stored token expired after leaving the session unattended\n              this.errorService.emitSessionExpiredError(401);\n            } else {\n              this.errorService.emitSessionExpiredError(code);\n            }\n          } else if (code >= 400) {\n            let message: string = marker('An error occured.');\n\n            if (code === 400) {\n              message = marker('An error occured when requesting data.');\n            } else if (code === 404) {\n              message = marker('The requested data does not exist.');\n            }\n            this.errorService.emitBackendError(code, message, marker('ARLAS-server'), 'snackbar');\n          }\n          return response;\n        },\n        // Handle a fetch error\n        responseError: (error) => {\n          if (typeof error === 'object' && error['request'] instanceof Request && error['request'].signal.aborted) {\n            // Signal was aborted, for supposedly good reasons (COG tile rendering, old pending request, ...)\n          } else {\n            console.log(error);\n          }\n          return Promise.reject(error);\n        }\n      });\n    }\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { inject, Injectable } from '@angular/core';\nimport { AuthorizeApi, Configuration, Resource } from 'arlas-permissions-api';\nimport { Observable } from 'rxjs/internal/Observable';\nimport { from } from 'rxjs/internal/observable/from';\nimport { GET_OPTIONS, GetOptions } from '../../tools/utils';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class PermissionService {\n\n  private authorizeApi!: AuthorizeApi;\n  private options: GetOptions = {};\n  private readonly getOptions = inject(GET_OPTIONS);\n\n  public constructor(\n    private readonly settingsService: ArlasSettingsService\n  ) {\n    this.setOptions(this.getOptions());\n    this.createPermissionApiInstance();\n  }\n\n  public setOptions(options: GetOptions): void {\n    this.options = options;\n  }\n\n  public createPermissionApiInstance(): void {\n    const permissionSettings = this.settingsService.getPermissionSettings();\n    if (!this.authorizeApi && !!permissionSettings) {\n      const configuration = new Configuration();\n      this.authorizeApi = new AuthorizeApi(configuration, permissionSettings.url, window.fetch);\n    }\n\n  }\n\n  public get(filter: string): Observable<Resource[]> {\n    return from(this.authorizeApi.get(filter, false, this.options));\n  }\n}\n\nexport interface PermissionSetting {\n  url: string;\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { inject, Injectable } from '@angular/core';\nimport { Configuration, DataResource, DataWithLinks, Exists, PersistApi } from 'arlas-persistence-api';\nimport { from, map, mergeMap, Observable } from 'rxjs';\nimport { GET_OPTIONS, GetOptions } from '../../tools/utils';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class PersistenceService {\n  private persistenceApi!: PersistApi;\n  public options: GetOptions = {};\n  public isAvailable = false;\n\n  private readonly getOptions = inject(GET_OPTIONS);\n\n  public constructor(\n    private readonly settingsService: ArlasSettingsService\n  ) {\n    this.setOptions(this.getOptions());\n    this.createPersistenceApiInstance();\n  }\n\n  public createPersistenceApiInstance(): void {\n    const persistenceSettings = this.settingsService.getPersistenceSettings();\n    if (!this.persistenceApi && !!persistenceSettings) {\n      const configuration = new Configuration();\n      this.persistenceApi = new PersistApi(configuration, persistenceSettings.url, window.fetch);\n      this.isAvailable = true;\n    }\n  }\n\n  public delete(id: string, options = this.options): Observable<DataWithLinks> {\n    return from(this.persistenceApi.deleteById(id, false, options));\n  }\n\n  public create(zone: string, name: string, body: string,\n    readers?: string[], writers?: string[], options = this.options): Observable<DataWithLinks> {\n    return from(this.persistenceApi.create(body, zone, name, readers, writers, false, options));\n\n  }\n  public get(id: string, options = this.options): Observable<DataWithLinks> {\n    return from(this.persistenceApi.getById(id, false, options));\n  }\n\n  public exists(id: string, options = this.options): Observable<Exists> {\n    return from(this.persistenceApi.existsById(id, false, options));\n  }\n\n  public list(zone: string, size: number, page: number, order: string, key = undefined, options = this.options): Observable<DataResource> {\n    return from(this.persistenceApi.list(zone, size, page, order, false, key, options));\n\n  }\n  public update(id: string, body: string, lastUpdate: number, name?: string,\n    readers?: string[], writers?: string[], options = this.options): Observable<DataWithLinks> {\n    return from(this.persistenceApi.update(body, id, lastUpdate, name, readers, writers, false, options));\n  }\n\n  public duplicate(zone: string, id: string, newName?: string, options = this.options): Observable<DataWithLinks> {\n    return this.get(id, options).pipe(\n      map(data => this.create(zone, newName ? newName : 'Copy of ' + data.doc_key, data.doc_value, [], [],\n        options)),\n      mergeMap(a => a)\n    );\n  }\n\n  public rename(id: string, newName: string, options = this.options): Observable<DataWithLinks> {\n    return this.get(id, options).pipe(\n      map(data => this.update(id, data.doc_value, new Date(data.last_update_date).getTime(),\n        newName, data.doc_readers, data.doc_writers, options)),\n      mergeMap(a => a)\n    );\n  }\n\n  public getGroupsByZone(zone: string, options = this.options) {\n    return from(this.persistenceApi.getGroupsByZone(zone, false, options));\n  }\n\n  public setOptions(options: GetOptions): void {\n    this.options = options;\n  }\n\n  /** updates the resource's name, readers and writers */\n  public updateResource(id: string, readers: string[], writers: string[], newValue?: string, options = this.options) {\n    this.exists(id, options).subscribe(\n      exist => {\n        if (exist.exists) {\n          this.get(id, options).subscribe({\n            next: (data) => {\n              // id should be required\n              this.update(data.id as string, newValue ? newValue : data.doc_value, new Date(data.last_update_date).getTime(), data.doc_key,\n                readers, writers, options).subscribe();\n            }\n          });\n        }\n      });\n  }\n\n  public renameResource(id: string, newName: string, options = this.options) {\n    this.exists(id, options).subscribe(\n      exist => {\n        if (exist.exists) {\n          this.get(id, options).subscribe({\n            next: (data) => {\n              this.rename(data.id as string, newName, options).subscribe();\n            }\n          });\n        }\n      });\n  }\n\n  public dashboardToResourcesGroups(dashboardReaders: string[], dashboardWiters: string[]): {\n    readers: string[];\n    writers: string[];\n  } {\n    let resourceReaders = new Array<string>();\n    let resourceWriters = new Array<string>();\n    if (dashboardReaders) {\n      // Seen with AB who says normally we dont need to do the replace anymore\n      resourceReaders = dashboardReaders;\n    }\n    if (dashboardWiters) {\n      // Seen with AB who says normally we dont need to do the replace anymore\n      resourceWriters = dashboardWiters;\n    }\n    return {\n      readers: resourceReaders,\n      writers: resourceWriters\n    };\n  }\n\n  public getOptionsSetOrg(org: string | undefined) {\n    const newOptions = { ...this.options};\n    if (newOptions.headers) {\n      newOptions.headers = { ...newOptions.headers};\n    }\n    // No need to have arlas-org-filer headers to delete or get by id\n    if (!!newOptions && !!newOptions['headers']) {\n      newOptions.headers['arlas-org-filter'] = org;\n    }\n    return newOptions;\n  }\n\n  /** deletes the resource by its id */\n  public deleteResource(previewId: string, options = this.options) {\n    this.exists(previewId, options).subscribe(\n      exist => {\n        if (exist.exists) {\n          this.delete(previewId, options).subscribe();\n        }\n      });\n  }\n}\n\nexport interface PersistenceSetting {\n  use_local_config?: boolean;\n  url: string;\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { ArlasColorService } from 'arlas-web-components';\nimport {\n  AnalyticsContributor,\n  ComputeContributor,\n  DetailedHistogramContributor,\n  HistogramContributor,\n  MapContributor,\n  MetricsTableContributor,\n  ResultListContributor,\n  SearchContributor,\n  SwimLaneContributor,\n  TreeContributor\n} from 'arlas-web-contributors';\nimport { ArlasTaskService } from '../arlas.task.service';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\nimport { ArlasConfigService } from './startup.service';\n\nexport class ContributorBuilder {\n\n  public static buildContributor(contributorType: string,\n    identifier: string,\n    configService: ArlasConfigService,\n    collaborativesearchService: ArlasCollaborativesearchService,\n    settingsService: ArlasSettingsService,\n    taskService: ArlasTaskService,\n    colorService?: ArlasColorService): any {\n\n    const config = configService.getValue('arlas.web.contributors').find((contrib: any) =>\n      contrib.type === contributorType && contrib.identifier === identifier\n    );\n    let collection = !!config['collection'] ? config['collection'] : collaborativesearchService.defaultCollection;\n    let contributor;\n    let isOneDimension: boolean;\n    let additionalCollections: Array<any>;\n    switch (contributorType) {\n      case 'metric':\n        contributor = new ComputeContributor(identifier, collaborativesearchService, configService, collection);\n        break;\n      case 'histogram':\n        isOneDimension = config['isOneDimension'];\n        additionalCollections = config['additionalCollections'];\n        contributor = new HistogramContributor(identifier, collaborativesearchService, configService, collection,\n          isOneDimension, additionalCollections);\n        (contributor as HistogramContributor).maxBuckets = settingsService.getHistogramMaxBucket();\n        break;\n      case 'detailedhistogram':\n        isOneDimension = config['isOneDimension'];\n        additionalCollections = config['additionalCollections'];\n        contributor = new DetailedHistogramContributor(identifier, collaborativesearchService, configService, collection,\n          isOneDimension, additionalCollections);\n        (contributor as DetailedHistogramContributor).maxBuckets = settingsService.getHistogramMaxBucket();\n        break;\n      case 'resultlist':\n        contributor = new ResultListContributor(identifier, collaborativesearchService, configService, collection, taskService);\n        break;\n      case 'map':\n        contributor = new MapContributor(identifier, collaborativesearchService, configService, collection, colorService?.colorGenerator);\n        break;\n      case 'swimlane':\n        isOneDimension = config['isOneDimension'];\n        contributor = new SwimLaneContributor(identifier, collaborativesearchService, configService, collection);\n        break;\n      case 'tree':\n        const titletree: string = config['title'];\n        contributor = new TreeContributor(identifier,\n          collaborativesearchService,\n          configService,\n          titletree, collection\n        );\n        break;\n      case 'search':\n      case 'chipssearch':\n        contributor = new SearchContributor(identifier,\n          collaborativesearchService,\n          configService, collection\n        );\n        break;\n      case 'analytics':\n        const groupIdToValues = new Map<string, Array<string>>();\n        const analytics = configService.getValue('arlas.web.analytics');\n        if (analytics) {\n          analytics.forEach((analytic: any) => {\n            if (analytic.filterValues) {\n              groupIdToValues.set(analytic.groupId, analytic.filterValues);\n            } else {\n              groupIdToValues.set(analytic.groupId, ['*']);\n            }\n          });\n        }\n        contributor = new AnalyticsContributor(identifier,\n          collaborativesearchService,\n          configService,\n          collection,\n          groupIdToValues\n        );\n        break;\n      case 'metricstable':\n        // For the MetricsTable, choose the collection of the first MetricsVector as the main collection\n        if (config['configuration']?.[0]?.collection) {\n          collection = config['configuration'][0].collection;\n        }\n        contributor = new MetricsTableContributor(identifier, collaborativesearchService, configService, collection);\n        break;\n    }\n    if (contributor) {\n      contributor.updateData = false;\n    }\n    return contributor;\n  }\n\n  /** Returns all the collections that are configured in each type of contributor. */\n  public static getCollections(contributorsConfig: any[]): Set<string> {\n    const collections = new Set<string>();\n    contributorsConfig.forEach(contributor => {\n      if (contributor.collection) {\n        collections.add(contributor.collection);\n      }\n      /** For histograms, multi-collection is possible. We need to check the 'additionalCollections' attribute.*/\n      if (contributor.type === 'histogram') {\n        if (contributor.additionalCollections && Array.isArray(contributor.additionalCollections)) {\n          contributor.additionalCollections.forEach((ac: any) => {\n            collections.add(ac.collectionName);\n          });\n        }\n      }\n    });\n    return collections;\n  }\n}\n\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { LOCATION_INITIALIZED } from '@angular/common';\nimport { HttpClient } from '@angular/common/http';\nimport { Inject, Injectable, InjectionToken, Injector, inject } from '@angular/core';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslateService } from '@ngx-translate/core';\nimport Ajv from 'ajv';\nimport ajvKeywords from 'ajv-keywords';\nimport * as draftSchema from 'ajv/lib/refs/json-schema-draft-06.json' with { type: 'json' };\nimport {\n  CollectionReferenceDescription, CollectionReferenceParameters, CollectionsApi, Configuration, ExploreApi, FetchAPI, Hits\n} from 'arlas-api';\nimport { DefaultApi, Configuration as IamConfiguration } from 'arlas-iam-api';\nimport { ArlasMapComponent, DrawTheme } from 'arlas-map';\nimport {\n  DonutComponent, HistogramComponent, MetricComponent, MetricsTableComponent, PowerbarsComponent\n} from 'arlas-web-components';\nimport {\n  AnalyticsContributor, ChipsSearchContributor, ComputeContributor, DetailedHistogramContributor, HistogramContributor,\n  MapContributor, MetricsTableContributor, ResultListContributor, SearchContributor, SwimLaneContributor, TreeContributor\n} from 'arlas-web-contributors';\nimport * as rootContributorConfSchema from 'arlas-web-contributors/jsonSchemas/rootContributorConf.schema.json' with { type: 'json' };\nimport { ConfigService, Contributor, FetchOptions, projType } from 'arlas-web-core';\nimport YAML from 'js-yaml';\nimport { Subject, catchError, defer, first, firstValueFrom, mergeMap, retry, throwError } from 'rxjs';\nimport { AnalyticGroupConfiguration } from '../../components/analytics/analytics.utils';\nimport { FilterShortcutConfiguration } from '../../components/filter-shortcut/filter-shortcut.utils';\nimport {\n  AuthentSetting, CONFIG_ID_QUERY_PARAM, GET_OPTIONS, GeocodingSetting, GetOptions,\n  NOT_CONFIGURED, WidgetConfiguration, getFieldProperties, getParamValue\n} from '../../tools/utils';\nimport { ArlasIamService, IamHeader } from '../arlas-iam/arlas-iam.service';\nimport { ArlasTaskService } from '../arlas.task.service';\nimport { AuthentificationService, } from '../authentification/authentification.service';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigurationUpdaterService, ArlasDashboardConfiguration } from '../configuration-updater/configurationUpdater.service';\nimport { ErrorService } from '../error/error.service';\nimport { FetchInterceptorService } from '../interceptor/fetch-interceptor.service';\nimport { PermissionService, PermissionSetting } from '../permission/permission.service';\nimport { PersistenceService, PersistenceSetting } from '../persistence/persistence.service';\nimport { ProcessService } from '../process/process.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\nimport * as arlasConfSchema from './arlasconfig.schema.json' with { type: 'json' };\nimport { ContributorBuilder } from './contributorBuilder';\nimport * as arlasSettingsSchema from './settings.schema.json' with { type: 'json' };\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ArlasConfigService extends ConfigService {\n  public errorsQueue = new Array<Error>();\n  public appName = '';\n\n  /** Returns the preview identifier stored in the config.json */\n  public getPreviewId(): string | undefined {\n    return this.getValue('resources.previewId');\n  }\n\n  public parse(stringifiedConfig: string) {\n    return JSON.parse(stringifiedConfig);\n  }\n\n  public getPreview(config: any) {\n    return config?.resources?.previewId;\n  }\n\n  public hasPreview(config: any) {\n    return !!this.getPreview(config);\n  }\n\n  public getI18n(config: any) {\n    return config?.resources?.i18nIds;\n  }\n\n  public getTours(config: any) {\n    return config?.resources?.toursIds;\n  }\n\n  public hasI18n(config: any) {\n    const i18nIds = this.getI18n(config);\n    return !!i18nIds && Object.entries(i18nIds).length > 0;\n  }\n\n  public hasTours(config: any) {\n    const toursIds = this.getTours(config);\n    return !!toursIds && Object.entries(toursIds).length > 0;\n  }\n\n  public hasResources(config: any) {\n    return this.hasI18n(config) || this.hasPreview(config);\n  }\n\n  public updateI18n(config: any, lang: string, i18nId: string) {\n    if (!config.resources) {\n      config.resources = {};\n    }\n    if (!config.resources.i18nIds) {\n      config.resources.i18nIds = {};\n    }\n    config.resources.i18nIds[lang] = i18nId;\n  }\n\n  public updateTour(config: any, lang: string, tourId: string) {\n    if (!config.resources) {\n      config.resources = {};\n    }\n    if (!config.resources.toursIds) {\n      config.resources.toursIds = {};\n    }\n    config.resources.toursIds[lang] = tourId;\n  }\n\n  public updatePreview(config: any, previewId: string) {\n    if (!config.resources) {\n      config.resources = {};\n    }\n    config.resources.previewId = previewId;\n    return config;\n  }\n}\n\n@Injectable()\nexport class ArlasExploreApi extends ExploreApi {\n  public constructor(@Inject('CONF') conf: Configuration, @Inject('base_path') basePath: string,\n    @Inject('fetch') fetch: FetchAPI) {\n    super(conf, basePath, fetch);\n  }\n}\n\n@Injectable()\nexport class ArlasCollectionApi extends CollectionsApi {\n  public constructor(@Inject('CONF') conf: Configuration, @Inject('base_path') basePath: string,\n    @Inject('fetch') fetch: FetchAPI) {\n    super(conf, basePath, fetch);\n  }\n}\n\n@Injectable()\nexport class ArlasIamApi extends DefaultApi {\n  public constructor(@Inject('CONF') conf: IamConfiguration, @Inject('base_path') basePath: string,\n    @Inject('fetch') fetch: FetchAPI) {\n    super(conf, basePath, fetch);\n  }\n}\n\nexport const CONFIG_UPDATER = new InjectionToken<Function>('config_updater');\nexport const FETCH_OPTIONS = new InjectionToken<GetOptions>('fetch_options');\n\nexport interface Error {\n  origin: string;\n  message: string;\n  reason: string;\n}\nexport const SETTINGS_FILE_NAME = 'settings.yaml?' + Date.now();\n\n@Injectable()\nexport class ArlasStartupService {\n  public contributorRegistry: Map<string, Contributor> = new Map<string, any>();\n  public shouldRunApp = true;\n  public emptyMode = false;\n  public analytics = new Array<AnalyticGroupConfiguration>();\n  public filtersShortcuts = new Array<FilterShortcutConfiguration>();\n  public collectionsMap: Map<string, CollectionReferenceParameters> = new Map();\n  public collectionId!: string;\n  public selectorById?: string;\n  public temporalContributor: Array<string> = new Array<string>();\n  private readonly errorMessagesList = new Array<string>();\n  public errorStartUpServiceBus: Subject<any> = new Subject<any>();\n  public arlasIsUp: Subject<boolean> = new Subject<boolean>();\n  public arlasExploreApi!: ArlasExploreApi;\n  public configurationUpdaterService: ArlasConfigurationUpdaterService;\n  public arlasIamApi?: ArlasIamApi;\n\n  private readonly getOptions = inject(GET_OPTIONS);\n  private readonly taskService = inject(ArlasTaskService);\n\n  public constructor(\n    private readonly settingsService: ArlasSettingsService,\n    private readonly configService: ArlasConfigService,\n    private readonly collaborativesearchService: ArlasCollaborativesearchService,\n    private readonly injector: Injector,\n    @Inject(FETCH_OPTIONS) private readonly fetchOptions: FetchOptions,\n    private readonly http: HttpClient,\n    private readonly translateService: TranslateService,\n    @Inject(CONFIG_UPDATER) private readonly configUpdater: Function,\n    private readonly persistenceService: PersistenceService,\n    private readonly permissionService: PermissionService,\n    private readonly errorService: ErrorService,\n    private readonly fetchInterceptorService: FetchInterceptorService,\n    private readonly arlasIamService: ArlasIamService,\n    private readonly processService: ProcessService\n  ) {\n    this.configurationUpdaterService = new ArlasConfigurationUpdaterService;\n  }\n\n  public getFGAService(): ArlasConfigurationUpdaterService {\n    return this.configurationUpdaterService;\n  }\n\n  public errorStartUp() {\n    this.errorStartUpServiceBus.subscribe(e => console.error(e));\n  }\n\n  public validateSettings(settings: ArlasSettings) {\n    return new Promise<any>((resolve, reject) => {\n      const ajvObj = new Ajv({ allowUnionTypes: true });\n      ajvKeywords(ajvObj, 'uniqueItemProperties');\n      const validateConfig = ajvObj\n        .addMetaSchema(draftSchema.default)\n        .compile((<any>arlasSettingsSchema).default);\n      if (settings && validateConfig(settings) === false) {\n        const errorMessagesList = new Array<string>();\n        errorMessagesList.push(\n          validateConfig.errors?.[0].schemaPath + ' ' +\n          validateConfig.errors?.[0].message\n        );\n        reject(new Error(errorMessagesList.join(' ')));\n      } else {\n        resolve(settings);\n      }\n    });\n  }\n\n  public validateConfiguration(data: ArlasDashboardConfiguration) {\n    return new Promise<ArlasDashboardConfiguration>((resolve, reject) => {\n      const ajvObj = new Ajv({ allowUnionTypes: true });\n      ajvKeywords(ajvObj, 'uniqueItemProperties');\n      const validateConfig = ajvObj\n        .addMetaSchema(draftSchema.default)\n        .addSchema((<any>rootContributorConfSchema).default)\n        .addSchema(HistogramContributor.getJsonSchema())\n        .addSchema(DetailedHistogramContributor.getJsonSchema())\n        .addSchema(SwimLaneContributor.getJsonSchema())\n        .addSchema(ResultListContributor.getJsonSchema())\n        .addSchema(MapContributor.getJsonSchema())\n        .addSchema(TreeContributor.getJsonSchema())\n        .addSchema(ChipsSearchContributor.getJsonSchema())\n        .addSchema(SearchContributor.getJsonSchema())\n        .addSchema(AnalyticsContributor.getJsonSchema())\n        .addSchema(ComputeContributor.getJsonSchema())\n        .addSchema(MetricsTableContributor.getJsonSchema())\n        .addSchema((<any>HistogramComponent.getHistogramJsonSchema()).default)\n        .addSchema((<any>HistogramComponent.getSwimlaneJsonSchema()).default)\n        .addSchema((<any>PowerbarsComponent.getPowerbarsJsonSchema()).default)\n        .addSchema((<any>ArlasMapComponent.getMapJsonSchema()).default)\n        .addSchema((<any>DonutComponent.getDonutJsonSchema()).default)\n        .addSchema((<any>MetricComponent.getMetricJsonSchema()).default)\n        .addSchema((<any>MetricsTableComponent.getJsonSchema()).default)\n        .compile((<any>arlasConfSchema).default);\n      if (validateConfig(data) === false) {\n        const errorMessagesList = new Array<string>();\n        errorMessagesList.push(\n          validateConfig.errors?.[0].schemaPath + ' ' +\n          validateConfig.errors?.[0].message\n        );\n        reject(new Error(errorMessagesList.join(' ')));\n      } else {\n        resolve(data);\n      }\n    });\n  }\n\n  public translationLoaded(data: ArlasDashboardConfiguration) {\n    return new Promise<[ArlasDashboardConfiguration, string]>(resolve => {\n      // Set default language to current browser language\n      let langToSet = navigator.language.slice(0, 2);\n      const urlLanguage = getParamValue('lg');\n      if (urlLanguage) {\n        langToSet = decodeURIComponent(urlLanguage.replaceAll('+', ' '));\n      }\n      const locationInitialized = this.injector.get(LOCATION_INITIALIZED, Promise.resolve(null));\n      locationInitialized.then(() => {\n        this.translateService.setFallbackLang('en').subscribe();\n        this.translateService.use(langToSet).subscribe(() => {\n          console.log(`Successfully initialized '${langToSet}' language.`);\n        }, err => {\n          console.error(`Problem with '${langToSet}' language initialization.'`);\n        }, () => {\n          resolve([data, langToSet]);\n        });\n      });\n    });\n  }\n\n  /**\n   * - Sets the configuration object in ArlasConfigService.\n   * - Sets the ArlasConfigService instance in ArlasCollaborativeSearchService\n   * @param data configation object\n   * @returns the same configuration object\n   */\n  public setConfigService(data: [ArlasDashboardConfiguration, string]) {\n    /** First set the raw config data in order to create an ArlasExploreApi instance */\n    const configAfterUpdater = this.configUpdater(data);\n    const newConfig = this.fixLayerStyleInfinity(configAfterUpdater);\n    if (!this.emptyMode) {\n      this.configService.setConfig(newConfig);\n      this.collaborativesearchService.setFetchOptions(this.fetchOptions);\n      const arlasUrl = this.configService.getValue('arlas.server.url');\n      const configuration: Configuration = new Configuration();\n      this.arlasExploreApi = new ArlasExploreApi(\n        configuration,\n        arlasUrl,\n        window.fetch\n      );\n      this.collaborativesearchService.setConfigService(this.configService);\n      this.collaborativesearchService.setExploreApi(this.arlasExploreApi);\n    }\n    return data;\n  }\n\n  /**\n   * Updates configuration by keeping only components/widgets that are availbale for exploration\n   * @param data configuration object\n   * @param availableFields list of fields that are available for exploration\n   * @returns the updated configuration object\n   */\n  public updateConfiguration(data: ArlasDashboardConfiguration, availableFields: Map<string, Set<string>>) {\n    if (!this.emptyMode) {\n      let updatedConfig = this.configurationUpdaterService.addCollectionIfMissing(data);\n      const contributorsToRemove = this.configurationUpdaterService.getContributorsToRemove(updatedConfig, availableFields);\n      updatedConfig = this.configurationUpdaterService.removeContributors(updatedConfig, contributorsToRemove);\n      updatedConfig = this.configurationUpdaterService.updateContributors(updatedConfig, availableFields);\n      updatedConfig = this.configurationUpdaterService.updateMapComponent(updatedConfig);\n      updatedConfig = this.configurationUpdaterService.removeWidgets(updatedConfig, contributorsToRemove);\n      updatedConfig = this.configurationUpdaterService.removeTimelines(updatedConfig, contributorsToRemove);\n      return updatedConfig;\n    } else {\n      return data;\n    }\n  }\n\n  /**\n   * Retrieves fields that are available for exploration and updates the configuration to keep only corresponding widgets and components\n   * @param data configuration object\n   */\n  public applyFGA(data: [ArlasDashboardConfiguration, string]): Promise<ArlasDashboardConfiguration> {\n    if (!this.emptyMode) {\n      const defaultCollection = this.configService.getValue('arlas.server.collection.name');\n      const collectionNames: Set<string> = ContributorBuilder.getCollections(this.configService.getValue('arlas.web.contributors'));\n      collectionNames.add(defaultCollection);\n      return this.listAvailableFields(collectionNames)\n        .then((availableFieldsPerCollection: Map<string, Set<string>>) => this.updateConfiguration(data[0], availableFieldsPerCollection))\n        .then((d) => {\n          this.configService.setConfig(d);\n          return d;\n        })\n        .catch(err => {\n          this.shouldRunApp = false;\n          if (err instanceof Response) {\n            console.error(err);\n            this.errorService.emitBackendError(err.status, err.statusText, 'ARLAS-server');\n          } else {\n            console.error(err);\n            this.errorService.emitUnavailableService('ARLAS-server');\n          }\n          return {};\n        });\n    } else {\n      return Promise.resolve({});\n    }\n  }\n\n  /**\n   * - Fetches and parses the `settings.yaml`.\n   * - Validates it against the correponding schema\n   * @returns ARLAS settings object Promise\n   */\n  public applyAppSettings(): Promise<ArlasSettings> {\n    return this.http.get(SETTINGS_FILE_NAME, { responseType: 'text', headers: { 'X-Skip-Interceptor': '' } }).toPromise()\n      .catch((err) => {\n        // application should not run if the settings.yaml file is absent\n        this.shouldRunApp = false;\n        console.error(err);\n        this.errorService.emitSettingsError();\n        return '{}';\n      })\n      .then(s => {\n        // parses the yaml file and validates it against the correponding schema\n        const settings = YAML.load(s ?? '') as ArlasSettings;\n        return this.validateSettings(settings);\n      })\n      .catch((err: any) => {\n        // application should not run if the settings.yaml file is not valid\n        this.shouldRunApp = false;\n        console.error(err);\n        this.errorService.emitSettingsError();\n        return Promise.reject(err);\n      })\n      .then(s => {\n        this.settingsService.setSettings(s);\n        this.persistenceService.createPersistenceApiInstance();\n        this.permissionService.createPermissionApiInstance();\n        return s;\n      });\n  }\n  /**\n   * if authentication is configured, trigger authentication service that redirects to login page if it's the first time and fetches\n   * the appropriate token\n   * @param settings ArlasSettings object\n   */\n  public authenticate(settings: ArlasSettings): Promise<ArlasSettings> {\n    return (new Promise<ArlasSettings>((resolve, reject) => {\n      // if authentication is configured, trigger authentication service that\n      // redirects to login page if it's the first time and fetches the appropriate token\n      if (settings) {\n        const authent = settings.authentication;\n        if (authent?.use_authent && authent.auth_mode === 'iam' && authent.url) { // Authentication activated with IAM mode\n          if (!this.arlasIamService.areSettingsValid(authent)[0]) {\n            const err = 'Authentication is set while ' + this.arlasIamService.areSettingsValid(authent)[1] + ' are not configured';\n            return reject(err);\n          }\n          this.arlasIamApi = new ArlasIamApi(new IamConfiguration(), authent.url, window.fetch);\n          this.arlasIamService.setArlasIamApi(this.arlasIamApi);\n\n          return resolve(this.arlasIamService.initAuthService().then(() => settings));\n        } else if (authent?.use_authent) { // Authentication activated with OPENID mode\n          const authService: AuthentificationService = this.injector.get('AuthentificationService')[0];\n          authService.authSettings = authent;\n          if (!authService.areSettingsValid(authent)[0]) {\n            const err = 'Authentication is set while ' + authService.areSettingsValid(authent)[1] + ' are not configured';\n            return reject(err);\n          }\n          return resolve(authService.initAuthService().then(() => settings));\n        }\n      }\n      return resolve(settings);\n    })).catch((err: any) => {\n      // application should not run if the settings.yaml file is not valid\n      this.shouldRunApp = false;\n      console.error(err);\n      this.errorService.emitSettingsError();\n      throw new Error(err);\n    });\n  }\n\n  /**\n   * Enriches headers of calls sent to ARLAS-server & ARLAS-persistence\n   * @param settings\n   */\n  public enrichHeaders(settings: ArlasSettings): Promise<ArlasSettings> {\n    return new Promise<ArlasSettings>((resolve, reject) => {\n      const useAuthent = !!settings && !!settings.authentication\n        && !!settings.authentication.use_authent;\n      // The default behavior is openid, so if there is no auth_mode specified, it is openid\n      const useAuthentOpenID = useAuthent && settings.authentication?.auth_mode !== 'iam';\n      const useAuthentIam = useAuthent && settings.authentication?.auth_mode === 'iam';\n      if (useAuthent) {\n        this.fetchInterceptorService.applyInterceptor();\n        if (useAuthentOpenID) {\n          const authService: AuthentificationService = this.injector.get('AuthentificationService')[0];\n          authService.canActivateProtectedRoutes.subscribe(isActivable => {\n            if (isActivable) {\n              const headers = {\n                headers: {\n                  Authorization: 'bearer ' + authService.accessToken\n                }\n              };\n              // ARLAS-persistence\n              this.persistenceService.setOptions(headers);\n              // ARLAS-server\n              this.fetchOptions.headers = headers.headers;\n              // ARLAS-Permission\n              this.permissionService.setOptions(headers);\n              // Process\n              this.processService.setOptions(headers);\n              this.taskService.setOptions(headers);\n            } else {\n              this.persistenceService.setOptions(this.getOptions());\n              this.permissionService.setOptions(this.getOptions());\n              this.processService.setOptions(this.getOptions());\n              this.taskService.setOptions(this.getOptions());\n            }\n            this.collaborativesearchService.setFetchOptions(this.fetchOptions);\n            resolve(settings);\n          });\n\n        } else if (useAuthentIam) {\n          const url = new URL(window.location.href);\n          const paramOrg = url.searchParams.get('org');\n          if (!!paramOrg) {\n            this.arlasIamService.storeOrganisation(paramOrg);\n          }\n          this.arlasIamService.tokenRefreshed$.subscribe({\n            next: (loginData) => {\n              if (loginData) {\n                const org = this.arlasIamService.getOrganisation();\n                const iamHeader: Record<string, any> = {\n                  Authorization: 'Bearer ' + loginData.access_token,\n                };\n                // Set the org filter only if the organisation is defined\n                if (org) {\n                  iamHeader['arlas-org-filter'] = org;\n                }\n                this.persistenceService.setOptions({ headers: iamHeader });\n                this.permissionService.setOptions({ headers: iamHeader });\n                this.processService.setOptions({ headers: iamHeader });\n                this.taskService.setOptions({ headers: iamHeader });\n                this.fetchOptions.headers = iamHeader;\n              } else {\n                this.persistenceService.setOptions({});\n                this.permissionService.setOptions({});\n                this.processService.setOptions({});\n                this.taskService.setOptions({});\n                this.fetchOptions.headers = undefined;\n              }\n              this.collaborativesearchService.setFetchOptions(this.fetchOptions);\n              resolve(settings);\n            }\n          });\n        }\n      } else {\n        this.persistenceService.setOptions(this.getOptions());\n        this.permissionService.setOptions(this.getOptions());\n        this.processService.setOptions(this.getOptions());\n        this.taskService.setOptions(this.getOptions());\n        this.collaborativesearchService.setFetchOptions(this.fetchOptions);\n        resolve(settings);\n      }\n    });\n  }\n  /**\n   * - Fetches the configuration file from ARLAS-persistence if it's configurated, otherwise fetches the config.json in \"src\" folder.\n   * - Validates the configuration against the corresponding schema\n   * @param settings Arlas Settings object\n   * @returns ARLAS Configuration object Promise\n   */\n  public getAppConfigurationObject(settings: ArlasSettings): Promise<ArlasDashboardConfiguration> {\n    const url = new URL(globalThis.location.href);\n    const usePersistence = !!settings?.persistence?.url && settings.persistence.url !== NOT_CONFIGURED && !settings.persistence.use_local_config;\n    const configurationId = url.searchParams.get(CONFIG_ID_QUERY_PARAM);\n    return new Promise<ArlasDashboardConfiguration>((resolve, reject) => {\n      let configDataPromise = Promise.resolve<ArlasDashboardConfiguration>({});\n      let configData: ArlasDashboardConfiguration;\n      if (usePersistence) {\n        if (configurationId) {\n          configDataPromise = defer(() => this.persistenceService.get(configurationId)).pipe(\n            catchError((err: Response) => {\n              this.errorService.closeAll().afterAllClosed.pipe(first()).subscribe(() => {\n                if (err.status === 401) {\n                  this.errorService.emitSessionExpiredError(err.status);\n                } else if (err.status === 403) {\n                  this.errorService.emitUnauthorizedActionError(err.status, marker('You are not allowed to view the dashboard'), true);\n                } else {\n                  this.errorService.emitUnavailableService('ARLAS-persistence');\n                }\n              });\n\n              return throwError(() => err);\n            }),\n            retry({ count: 1, delay: 2000 })\n          ).toPromise()\n            .then(s => {\n              if (s) {\n                const config = JSON.parse(s.doc_value);\n                this.configService.appName = s.doc_key;\n                configData = config;\n                return config;\n              }\n              return null;\n            }).catch((err) => {\n              if (err instanceof Response) {\n                this.emptyMode = true;\n                console.error(err);\n                this.errorService.emitUnavailableService('ARLAS-persistence');\n                return null;\n              } else {\n                this.shouldRunApp = false;\n                this.errorService.emitInvalidDashboardError(false, marker('The dashboard is invalid'));\n              }\n            });\n        } else {\n          this.emptyMode = true;\n        }\n      } else {\n        // persistence is not used, we use the config.json file mounted\n        configDataPromise = firstValueFrom(this.http\n          .get('config.json')\n          .pipe(mergeMap((response: ArlasDashboardConfiguration) => {\n            configData = response;\n            if (configData.extraConfigs === undefined) {\n              return Promise.resolve(configData);\n            } else {\n              const promises = new Array<Promise<any>>();\n              configData.extraConfigs.forEach((extraConfig: ExtraConfig) => promises.push(this.loadExtraConfig(extraConfig, configData)));\n              return Promise.all(promises).then(() => configData);\n            }\n          })));\n      }\n\n      resolve(configDataPromise.then(configObject => {\n        if (!this.emptyMode) {\n          return this.validateConfiguration(configObject);\n        } else {\n          return {};\n        }\n      }).catch((err: Error) => {\n        // Block the app from running\n        this.emptyMode = true;\n        this.shouldRunApp = false;\n        console.error(err);\n        this.errorService.emitInvalidDashboardError(true, marker('An error was detected in the dashboard while loading it.'));\n        return {};\n      }));\n    });\n  }\n\n  public setCollaborativeService(data: ArlasDashboardConfiguration): Promise<ArlasDashboardConfiguration> {\n    if (!this.emptyMode) {\n      return new Promise<ArlasDashboardConfiguration>((resolve, reject) => {\n        this.collaborativesearchService.setConfigService(this.configService);\n        this.collaborativesearchService.setExploreApi(this.arlasExploreApi);\n        this.collaborativesearchService.defaultCollection = this.configService.getValue('arlas.server.collection.name');\n        const maxAge = this.configService.getValue('arlas.server.max_age_cache');\n        this.collaborativesearchService.max_age = maxAge ?? 120;\n        resolve(data);\n      });\n    }\n    return Promise.resolve({});\n  }\n\n  public testArlasUp(configData: ArlasDashboardConfiguration): Promise<Hits | undefined> {\n    if (!this.emptyMode) {\n      return new Promise<Hits>((resolve, reject) => {\n        this.collaborativesearchService.resolveHits([projType.count, {}], this.collaborativesearchService.collaborations,\n          this.collaborativesearchService.defaultCollection)\n          .subscribe(\n            result => {\n              resolve(result);\n            },\n            error => {\n              reject(error);\n            });\n      });\n    } else {\n      return Promise.resolve(undefined);\n    }\n  }\n\n  /**\n   * Fetches from ARLAS-Server all of the available collections and initialises the map of CollectionReferenceParameters\n   */\n  public getCollections(data: Hits | undefined): Promise<CollectionReferenceDescription[]> {\n    if (!this.emptyMode && data) {\n      return new Promise<CollectionReferenceDescription[]>((resolve, reject) => {\n        this.collaborativesearchService.list()\n          .subscribe({\n            next: (allCollections) => {\n              // mainCollection is included in allCollections\n              allCollections.forEach(c => this.collectionsMap.set(c.collection_name, c.params));\n              if (data.collection) {\n                const c = allCollections.find(c => c.collection_name === data.collection);\n                if (c) {\n                  this.collectionId = c.params.id_path;\n                }\n              }\n\n              resolve(allCollections);\n            },\n            error: (err) => {\n              reject(new Error('Failed getting collections'));\n            }\n          });\n      });\n    } else {\n      return Promise.resolve([]);\n    }\n  }\n  /**\n  * Lists the fields for each collection in `collectionNames` list; that are available for exploration with `arlasExploreApi`\n  * @param collectionNames collection names\n  * @returns available fields per collection\n  */\n  public listAvailableFields(collectionNames: Set<string>): Promise<Map<string, Set<string>>> {\n    const availableFieldsPerCollection = new Map<string, Set<string>>();\n    const hiddenAvailableFields = new Array<string>();\n    return this.collaborativesearchService.list().toPromise().then(\n      collectionDescriptions => {\n        collectionDescriptions?.filter((cd: CollectionReferenceDescription) => collectionNames.has(cd.collection_name))\n          .forEach((cd: CollectionReferenceDescription) => {\n            const availableFields = new Set<string>();\n            getFieldProperties(cd.properties).map(p => {\n              if (p.type === 'GEO_POINT') {\n                hiddenAvailableFields.push(p.label + '.lon');\n                hiddenAvailableFields.push(p.label + '.lat');\n              }\n              return p.label;\n            }).forEach(label => availableFields.add(label));\n            availableFields.add(cd.params.id_path);\n            availableFields.add(cd.params.timestamp_path);\n            availableFields.add(cd.params.geometry_path);\n            availableFields.add(cd.params.centroid_path);\n            hiddenAvailableFields.forEach(f => availableFields.add(f));\n            availableFieldsPerCollection.set(cd.collection_name, availableFields);\n          });\n        return availableFieldsPerCollection;\n      });\n  }\n\n  public buildContributor(data: CollectionReferenceDescription[]) {\n    if (!this.emptyMode) {\n      return new Promise<any>((resolve, reject) => {\n        this.configService.getValue('arlas.web.contributors').forEach((contrib: any) => {\n          const contributorType = contrib.type;\n          const contributorIdentifier = contrib.identifier;\n          if (contributorType === 'resultlist') {\n            this.selectorById = contributorIdentifier;\n          } else if (contributorType === 'histogram') {\n            const aggregationmodels = contrib.aggregationmodels;\n            aggregationmodels.forEach(\n              (agg: any) => {\n                if (agg.type === 'datehistogram') {\n                  if (this.temporalContributor.indexOf(contributorIdentifier)) {\n                    this.temporalContributor.push(contributorIdentifier);\n                  }\n                }\n              }\n            );\n          } else if (contributorType === 'swimlane') {\n            const swimlanes = contrib.swimlanes;\n            swimlanes.forEach((swimlane: any) => {\n              swimlane.aggregationmodels.forEach(\n                (agg: any) => {\n                  if (agg.type === 'datehistogram') {\n                    if (this.temporalContributor.indexOf(contributorIdentifier)) {\n                      this.temporalContributor.push(contributorIdentifier);\n                    }\n                  }\n                }\n              );\n            });\n          }\n          const contributor = ContributorBuilder.buildContributor(contributorType,\n            contributorIdentifier,\n            this.configService,\n            this.collaborativesearchService,\n            this.settingsService,\n            this.taskService);\n          this.contributorRegistry.set(contributorIdentifier, contributor);\n        });\n        this.analytics = this.configService.getValue('arlas.web.analytics');\n        this.filtersShortcuts = this.configService.getValue('arlas.web.filters_shortcuts');\n        if (this.filtersShortcuts) {\n          this.filtersShortcuts.forEach(fs => {\n            fs.component = this.getShortcutComponent(fs.uuid);\n          });\n        }\n        this.arlasIsUp.next(true);\n        resolve(data);\n      });\n    } else {\n      return Promise.resolve({});\n    }\n  }\n\n\n  /**\n   * Loads extra configuration declared in the main configuration file.\n   * @param extraConfig This object specifies\n   * the path to the extra configuration file,\n   * the attribute to change in the main configuration file,\n   * and the attribute to take from the extra configuration file.\n   * @param data Content of the extra configuration file\n   */\n  public loadExtraConfig(extraConfig: ExtraConfig, data: Object): Promise<any> {\n    return this.http.get(extraConfig.configPath + '?' + Date.now())\n      .toPromise()\n      .then((extraConfigData: Record<string, any> | undefined) => {\n        if (extraConfigData?.[extraConfig.replacer] === undefined) {\n          this.shouldRunApp = false;\n          this.errorMessagesList.push('The replacer : ' + extraConfig.replacer + ' does not exist in your '\n            + extraConfig.configPath + ' file.');\n        } else {\n          this.setAttribute(extraConfig.replacedAttribute, extraConfigData[extraConfig.replacer], data);\n        }\n      })\n      .catch((err: any) => {\n        console.error(err);\n        return null;\n      });\n  }\n\n  public changeOrgHeader(org: string | undefined, accessToken: string) {\n    this.arlasIamService.setHeaders(org, accessToken);\n    const headers: IamHeader = {\n      Authorization: 'Bearer ' + accessToken,\n      'arlas-org-filter': org\n    };\n    this.persistenceService.setOptions({ headers });\n    this.permissionService.setOptions({ headers });\n    this.fetchOptions.headers = headers;\n    this.collaborativesearchService.setFetchOptions(this.fetchOptions);\n  }\n\n\n  public load(): Promise<any> {\n    return this.applyAppSettings()\n      .then((s: ArlasSettings) => this.authenticate(s))\n      .then((s: ArlasSettings) => this.enrichHeaders(s))\n      .then((s: ArlasSettings) => this.getAppConfigurationObject(s))\n      .then((data) => this.translationLoaded(data))\n      .then((data) => this.setConfigService(data))\n      .then((data) => this.applyFGA(data))\n      .then((data) => this.setCollaborativeService(data))\n      .then((data) => this.testArlasUp(data))\n      .then((data) => this.getCollections(data))\n      .then((data) => this.buildContributor(data))\n      .catch((err: any) => {\n        this.shouldRunApp = false;\n        if (err instanceof Response) {\n          console.error(err);\n          this.errorService.emitBackendError(err.status, err.statusText, '');\n        } else {\n          console.error(err);\n          this.errorService.emitUnavailableService('');\n        }\n        return null;\n      }).then((x) => { });\n  }\n\n  private setAttribute(path: string, value: any, object: Record<string, any>) {\n    const pathToList = path.split('.');\n    const pathLength = pathToList.length;\n    for (let i = 0; i < pathLength - 1; i++) {\n      const element = pathToList[i];\n      if (!object[element]) {\n        this.shouldRunApp = false;\n        this.errorMessagesList.push('The attribute : ' + path + ' does not exist in your main configuration.');\n      }\n      object = object[element];\n    }\n    object[pathToList[pathLength - 1]] = value;\n  }\n\n  private getShortcutComponent(uuid: string) {\n    let component: WidgetConfiguration | undefined;\n    for (const g of this.analytics) {\n      let clonedComponent: WidgetConfiguration;\n      component = g.components.find(c => c.uuid === uuid);\n      if (component) {\n        if (component.componentType === 'histogram') {\n          clonedComponent = { ...component };\n          clonedComponent.contributorId = uuid;\n          return clonedComponent;\n        }\n        break;\n      }\n    }\n    return component;\n  }\n\n  private fixLayerStyleInfinity(config: ArlasDashboardConfiguration) {\n    /** FIX wrong v15 map filters about Infinity values */\n    if (!!config && !!config.arlas && !!config.arlas.web && !!config.arlas.web.components.mapgl) {\n      const layers = config.arlas.web.components.mapgl.input.mapLayers.layers;\n      layers.forEach((layer: any) => {\n        if (!!layer.filter && Array.isArray(layer.filter)) {\n          const filters = new Array<string[]>();\n          layer.filter.forEach((expression: any) => {\n            if (Array.isArray(expression) && expression.length === 3) {\n              if (expression[0] === '!=' && expression[2] === 'Infinity') {\n                expression = ['<=', expression[1].replaceAll('.', '_'), Number.MAX_VALUE];\n              } else if (expression[0] === '!=' && expression[2] === '-Infinity') {\n                expression = ['>=', expression[1].replaceAll('.', '_'), -Number.MAX_VALUE];\n              }\n            }\n            filters.push(expression);\n          });\n          layer.filter = filters;\n        }\n      });\n    }\n    return config;\n  }\n}\n\nexport interface ExtraConfig {\n  configPath: string;\n  replacedAttribute: string;\n  replacer: string;\n}\n\nexport interface ArlasSettings {\n  authentication?: AuthentSetting;\n  persistence?: PersistenceSetting;\n  permission?: PermissionSetting;\n  arlas_wui_url?: string;\n  arlas_builder_url?: string;\n  arlas_hub_url?: string;\n  arlas_iam_wui_url?: string;\n  links?: Array<LinkSettings>;\n  ticketing_key?: string;\n  tab_name?: string;\n  dark_theme_enabled?: boolean;\n  dashboards_shortcut?: boolean;\n  histogram?: HistogramSettings;\n  resultlist?: ResultlistSettings;\n  processes?: Array<ProcessSettings>;\n  geocoding?: GeocodingSetting;\n  /**\n   * Urls that are ignored by the FetchInterceptorService.\n   * Check is performed on whether the intercepted url matches the beginning of any whitelisted url.\n   */\n  whitelistedUrls?: string[];\n\n  /**\n   * Theme to use for the draw in an ARLAS map\n   */\n  drawTheme?: DrawTheme;\n}\n\nexport interface LinkSettings {\n  name: string;\n  url: string;\n  icon: string;\n  tooltip?: string;\n  check_url: string;\n  check_url_response_type?: string;\n}\n\nexport interface HistogramSettings {\n  max_buckets: number;\n  export_nb_buckets: number;\n}\n\nexport interface ResultlistSettings {\n  export_size: number;\n}\n\nexport interface ProcessSettings {\n  name: string;\n  url: string;\n  check_url: string;\n  max_items?: number;\n  settings: {\n    url: string;\n  };\n  status: {\n    url: string;\n  };\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';\nimport { EventEmitter, Injectable } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { HistogramContributor } from 'arlas-web-contributors';\nimport { Contributor, OperationEnum } from 'arlas-web-core';\nimport { AnalyticGroupConfiguration, AnalyticsTabs } from '../../components/analytics/analytics.utils';\nimport { hasContributorData } from '../../tools/utils';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigService } from '../startup/startup.service';\nimport { BehaviorSubject } from 'rxjs';\n\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class AnalyticsService {\n\n  /**\n   * @description Emits the name of the tab when the selected tab in the menu has changed\n   */\n  public tabChange: EventEmitter<string> = new EventEmitter();\n\n  /**\n   * @description Whether drag and drop is active for the groups inside of the analytics board\n   */\n  public isActiveDragDrop = false;\n\n  /**\n   * @description List of groups. Each group contains one or more widgets.\n   */\n  private _groups: Array<AnalyticGroupConfiguration> = [];\n\n  /**\n   * @description List of tabs. Each tab contains one or more groups.\n   */\n  private _tabs: Array<AnalyticsTabs> = [];\n\n  /**\n   * @description Map of which group(s) each contributor belong to\n   */\n  private _contributorGroup: Map<string, Array<string>> = new Map();\n\n  /**\n   * @description Map of which tab each group belong to\n   */\n  private _groupTab: Map<string, string> = new Map();\n\n  /**\n   * @description List of groups with their tab's name\n   */\n  private _groupsByTab: Array<{ name: string; groups: Array<AnalyticGroupConfiguration>; }> = new Array();\n\n  /**\n   * @description Map of the open/close state of groups\n   */\n  private _wasClosedMap: Map<string, boolean> = new Map();\n\n  /**\n   * @description Map of whether to display each group\n   */\n  private _groupsDisplayStatusMap = new Map<string, boolean>();\n\n  /**\n   * @description Index of the currently selected tab. Can be undefined when no tab is selected.\n   */\n  private _activeTab: number | undefined;\n\n  /**\n   * @description Map of which groups are currently filtered on\n   */\n  private _activeFilterGroup: Map<string, boolean> = new Map();\n\n  /**\n   * @description Map of which tabs are currently filtered on\n   */\n  private _activeFilterTab: Map<string, boolean> = new Map();\n\n  /**\n   * @description Name of the tab in which groups are put by default if they don't belong in one.\n   */\n  private defaultGroupTabName = 'analytics';\n\n  /**\n   * Whether analytics table is open or nat.\n   */\n  public readonly _isOpen$ = new BehaviorSubject<boolean>(false);\n  public readonly isOpen$ = this._isOpen$.asObservable();\n\n  public constructor(\n    private configService: ArlasConfigService,\n    private collaborativeService: ArlasCollaborativesearchService,\n    private activatedRoute: ActivatedRoute,\n    private router: Router,\n  ) {\n  }\n\n  public setGroupsDisplayStatusMap(statusMap: Map<string, boolean>) {\n    this._groupsDisplayStatusMap = statusMap;\n  }\n\n  public getActiveGroups() {\n    return this._activeTab !== undefined ? this._groupsByTab[this._activeTab].groups : [];\n  }\n\n  /**\n   * Triggered when a tab is selected by the menu.\n   * Updates the URL to store which tab the user is currently on.\n   * Deactivates data updating of the widgets of the hidden tabs.\n   * Emits a tab change event.\n   * @param tabIndex Index of the tab selected. Can be undefined if none is selected.\n   */\n  public selectTab(tabIndex: number | undefined) {\n    if (tabIndex !== undefined && tabIndex >= this._tabs.length) {\n      throw new Error(`The index of the analytics tab selected does not exist. There are onlys ${this._tabs.length} tabs.`);\n    }\n\n    this._activeTab = tabIndex;\n    let tabName;\n    if (tabIndex !== undefined) {\n      tabName = this._tabs[tabIndex].name;\n      // Indicate to analytics board that the tab was changed\n      this.tabChange.next(tabName);\n    }\n    this._isOpen$.next(tabIndex !== undefined);\n\n    // Navigate to new url\n    const queryParams = Object.assign({}, this.activatedRoute.snapshot.queryParams);\n    if (tabName === undefined) {\n      delete queryParams['at'];\n    } else {\n      queryParams['at'] = tabName;\n    }\n    this.router.navigate([], { replaceUrl: true, queryParams: queryParams });\n\n    // Remove collaborations of other tabs\n    // Remove all contributions but the one of the active tab\n    if (this._activeTab !== undefined) {\n      this.cancelAllOtherTabsContribution(this._activeTab);\n      this.getActiveGroups().forEach(g => {\n        if (g.collapsed !== true) {\n          this.activateGroupContribution(g);\n        }\n      });\n    } else {\n      // If no active tab, then remove every tab contributions\n      this.cancelAllTabsContribution();\n    }\n  }\n\n  /**\n   * Activates the data upating of the contributors of every widget of the group.\n   * @param group Configuration of the group to display\n   */\n  public openPanel(group: AnalyticGroupConfiguration) {\n    this._groupsByTab.forEach(groupTab => {\n      groupTab.groups.map(grp => {\n        if (grp.groupId === group.groupId) {\n          grp.collapsed = false;\n        }\n      });\n    });\n    if (this._activeTab && group.tab === this._tabs[this._activeTab].name) {\n      this.activateGroupContribution(group);\n    }\n  }\n\n  /**\n   * Deactivates the data upating of the contributors of every widget of the group.\n   * @param group Configuration of the group to hide\n   */\n  public closePanel(group: AnalyticGroupConfiguration) {\n    this._groupsByTab.forEach(groupTab => {\n      groupTab.groups.map(grp => {\n        if (grp.groupId === group.groupId) {\n          grp.collapsed = true;\n        }\n      });\n    });\n    this.cancelGroupContribution(group);\n  }\n\n  public cancelAllOtherTabsContribution(tabIndex: number) {\n    this._groupsByTab.filter(groupTab => groupTab.name !== this._tabs[tabIndex].name)\n      .map(groupTab => groupTab.groups)\n      .forEach(groups => {\n        groups.forEach(group => {\n          this.cancelGroupContribution(group);\n        });\n      });\n  }\n\n  public cancelAllTabsContribution() {\n    this._groupsByTab\n      .map(groupTab => groupTab.groups)\n      .forEach(groups => {\n        groups.forEach(group => {\n          this.cancelGroupContribution(group);\n        });\n      });\n  }\n\n  /**\n   * Deactivates all the contributors of the group that are not present in the active tab.\n   * @param group Configuration of the group to deactivate\n   */\n  public cancelGroupContribution(group: AnalyticGroupConfiguration) {\n    this._wasClosedMap.set(group.groupId, true);\n    // Get all contributors ID from the current active tab that are not collapsed\n    const currentIndex = !!this._activeTab ? this._activeTab : 0;\n    const currentTabContributorsId = new Array<string>();\n    this._groupsByTab[currentIndex].groups.forEach(group => {\n      if (group.collapsed !== true) {\n        group.components.forEach(c => currentTabContributorsId.push(c.contributorId));\n      }\n    });\n\n    group.components\n      // Disable only contributors not present in the current tab not collapsed\n      .filter(c => !currentTabContributorsId.includes(c.contributorId))\n      .map(componentConfig => componentConfig.contributorId)\n      .map(contribId => this.collaborativeService.registry.get(contribId))\n      .filter(c => !!c)\n      .forEach(contributor => {\n        contributor.updateData = false;\n      });\n  }\n\n  /**\n   * Activates all the contributors of the group.\n   * @param group Configuration of the group to activate\n   */\n  public activateGroupContribution(group: AnalyticGroupConfiguration) {\n    group.components\n      .map(componentConfig => componentConfig.contributorId)\n      .map(contribId => this.collaborativeService.registry.get(contribId))\n      .filter(c => !!c)\n      .forEach(contributor => {\n        contributor.updateData = true;\n        // if (!this.collaborativeService.endOfUrlCollaboration) {\n        //   // At first loading of the application, the current tab groups are already open.\n        //   // No need to reload the data, it is already done by the global setCollaboration ('url')\n        //   this._wasClosedMap.set(group.groupId, false);\n        // }\n        // Or if there is no data\n        if (this._wasClosedMap.get(group.groupId) || !hasContributorData(contributor)) {\n          this.updateFromCollaboration(contributor);\n        }\n      });\n    this._wasClosedMap.set(group.groupId, false);\n  }\n\n  /**\n   *\n   * @param group Group declared in configuration file\n   * @param display Whether to display the widget\n   */\n  public addWidget(group: AnalyticGroupConfiguration, display: boolean): void {\n    if (group && group.groupId) {\n      this._groupsDisplayStatusMap.set(group.groupId, display);\n      this._groups.push(group);\n    }\n  }\n\n  /**\n   * Removes all the filters of the given group\n   * @param groupId Group id\n   */\n  public removeFilter(groupId: string) {\n    Array.from(this._contributorGroup.entries()).filter(group => group[1].includes(groupId)).forEach(mapGroup => {\n      Array.from(this.collaborativeService.collaborations.keys()).filter(cont => cont === mapGroup[0]).forEach(contributor => {\n        this.collaborativeService.removeFilter(contributor);\n      });\n    });\n  }\n\n  /**\n   * Removes all the filters of the given tab\n   * @param tabId Tab id\n   */\n  public removeTabFilter(tabId: string) {\n    Array.from(this._groupTab.entries()).filter(tab => tab[1] === tabId).forEach(mapTab => {\n      this.removeFilter(mapTab[0]);\n    });\n  }\n\n  /**\n   * Updates the map of which groups are currently filtered on\n   */\n  public setActiveFilterGroup() {\n    this._activeFilterGroup.clear();\n    this.collaborativeService.getEnableContributors().forEach(contrib => {\n      // It is possible that a contributor is not linked to a group (timeline)\n      const groups = this._contributorGroup.get(contrib);\n      if (!!groups) {\n        groups.forEach(groupId => {\n          this._activeFilterGroup.set(groupId, true);\n        });\n      }\n    });\n  }\n\n  /**\n   * Updates the map of which tabs are currently filtered on\n   */\n  public setActiveFilterTab() {\n    this._activeFilterTab.clear();\n    this.collaborativeService.getEnableContributors().forEach(contrib => {\n      // It is possible that a contributor is not linked to a group (timeline)\n      const groups = this._contributorGroup.get(contrib);\n      if (!!groups) {\n        groups.forEach(groupId => {\n          const tab = this._groupTab.get(groupId);\n          if (tab) {\n            this._activeFilterTab.set(tab, true);\n          }\n        });\n      }\n    });\n  }\n\n  /**\n   * Updates the order of the groups of the current tab.\n   * Stores in the local storage this new order.\n   * @param event Drop event of a group being moved\n   */\n  public dropGroup(event: CdkDragDrop<string[]>) {\n    const currentTabGroups = this.getActiveGroups();\n    moveItemInArray(currentTabGroups, event.previousIndex, event.currentIndex);\n    const groupIdsByTab = new Map<string, Array<String>>();\n    this._groupsByTab.forEach((tab) => {\n      groupIdsByTab.set(tab.name, tab.groups.map(group => group.groupId));\n    });\n    localStorage.setItem('arlas_tabs_groups_order', JSON.stringify([...groupIdsByTab]));\n  }\n\n  /**\n   * Initialize the mapping of the designated tab with its groups if not already done\n   * @param tabName The considered tab's name\n   */\n  private initTabMapping(tabName: string) {\n    if (this._groupsByTab.filter(item => item.name === tabName).length === 0) {\n      this._groupsByTab.push({ name: tabName, groups: new Array<AnalyticGroupConfiguration>() });\n    }\n  }\n\n  /**\n   * Stores group in the correct tab, and indicates the correct tab for the group\n   * @param group The considered group\n   * @param tabName The considered tab name\n   */\n  private fillTabMapping(group: AnalyticGroupConfiguration, tabName: string) {\n    this._groupsByTab.filter(tabGroup => tabGroup.name === tabName).forEach(tabGroup => tabGroup.groups.push(group));\n    this._groupTab.set(group.groupId, tabName);\n  }\n\n  private updateFromCollaboration(contributor: Contributor) {\n    contributor.updateFromCollaboration({\n      id: contributor.linkedContributorId,\n      operation: OperationEnum.add,\n      all: false\n    });\n    if (contributor instanceof HistogramContributor) {\n      const histContributor = contributor as HistogramContributor;\n      if (histContributor.detailedHistrogramContributor && histContributor.detailedHistrogramContributor.updateData) {\n        histContributor.detailedHistrogramContributor.updateFromCollaboration({\n          id: contributor.linkedContributorId,\n          operation: OperationEnum.add,\n          all: false\n        });\n      }\n    }\n  }\n\n  /**\n   * @description List of groups. Each group contains one or more widgets.\n   */\n  public get groups() {\n    return this._groups;\n  }\n\n  public initializeGroups(groups: Array<AnalyticGroupConfiguration>) {\n    this.reset();\n    this._groups = groups;\n    this._groups?.forEach(group => {\n      this.initTabMapping(group.tab ? group.tab : this.defaultGroupTabName);\n      this.fillTabMapping(group, group.tab ? group.tab : this.defaultGroupTabName);\n\n      // Issue with same contributor in different tabs ?\n      group.components.forEach(comp => {\n        if (!this._contributorGroup.get(comp.contributorId)) {\n          this._contributorGroup.set(comp.contributorId, [group.groupId]);\n        } else {\n          this._contributorGroup.get(comp.contributorId)?.push(group.groupId);\n        }\n      });\n      if (group.collapsed) {\n        this._wasClosedMap.set(group.groupId, group.collapsed);\n      }\n    });\n\n    // Get tabs from config\n    const webConfig = this.configService.getValue('arlas.web');\n    if (webConfig !== undefined && webConfig.options !== undefined) {\n      if (webConfig.options.drag_items) {\n        this.isActiveDragDrop = webConfig.options.drag_items;\n      }\n\n      if (webConfig.options.tabs) {\n        this._tabs = webConfig.options.tabs;\n        const tabsWithGroups = this._groupsByTab.map(v => v.name);\n        this._tabs = this._tabs.filter(tab => tabsWithGroups.includes(tab.name));\n      }\n    }\n\n    // If there are no tabs in the config, there are either really no tabs,\n    // or the config has no tabs declared, but groups that should be in their designated tabs\n    /** Retro-compatibility code */\n    if (this._tabs.length === 0 && !!this._groups) {\n      const tabsSet = new Set<string>();\n      this._groups.forEach(group => {\n        if (!tabsSet.has(group.tab)) {\n          tabsSet.add(group.tab);\n          this._tabs.push({\n            icon: 'short_text',\n            name: group.tab,\n            showIcon: false,\n            showName: false\n          });\n        }\n      });\n    }\n    /** End of retro-compatibility code */\n\n    if (!this._groupsDisplayStatusMap) {\n      this._groupsDisplayStatusMap = new Map<string, boolean>();\n    }\n\n    this._groups?.forEach(group => this._groupsDisplayStatusMap.set(group.groupId, true));\n\n    // sort groups given saved order\n    const arlasTabsGroupsOrder = localStorage.getItem('arlas_tabs_groups_order');\n    if (this.isActiveDragDrop && arlasTabsGroupsOrder) {\n      const orderedGroupIdsByTab = new Map<string, string[]>(JSON.parse(arlasTabsGroupsOrder));\n      orderedGroupIdsByTab.forEach((ids, tabName) => {\n        const currentTab = this._groupsByTab.filter(groupTab => groupTab.name === tabName);\n        if (currentTab.length > 0) {\n          currentTab[0].groups.sort((a, b) => ids.indexOf(a.groupId) - ids.indexOf(b.groupId));\n        }\n      });\n    }\n\n    // Set groups and tabs badge\n    this.setActiveFilterGroup();\n    this.setActiveFilterTab();\n    this.collaborativeService.collaborationBus.subscribe(() => {\n      this.setActiveFilterTab();\n      this.setActiveFilterGroup();\n    });\n  }\n\n  /**\n   * In case of using the service with several instances of AnalyticsBoardComponent, the global variables should\n   * be reset if we re-initialize groups.\n   */\n  private reset() {\n    this._tabs = [];\n    this._groupsByTab = [];\n    this._groupsDisplayStatusMap = new Map<string, boolean>();\n  }\n\n  /**\n   * @description List of tabs. Each tab contains one or more groups.\n   */\n  public get tabs() {\n    return this._tabs;\n  }\n\n  /**\n   * @description Map of whether to display each group\n   */\n  public get groupsDisplayStatusMap() {\n    return this._groupsDisplayStatusMap;\n  }\n\n  /**\n   * @description Map of which tabs are currently filtered on\n   */\n  public get activeFilterTab() {\n    return this._activeFilterTab;\n  }\n\n  /**\n   * @description Map of which groups are currently filtered on\n   */\n  public get activeFilterGroup() {\n    return this._activeFilterGroup;\n  }\n\n  /**\n   * @description Index of the currently selected tab. Can be undefined when no tab is selected.\n   */\n  public get activeTab() {\n    return this._activeTab;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, Input } from '@angular/core';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { SpinnerOptions } from '../../tools/utils';\n\nexport const DEFAULT_SPINNER_OPTIONS: SpinnerOptions = {\n  color: 'primary',\n  diameter: 100,\n  strokeWidth: 5\n};\n\n@Component({\n  selector: 'arlas-tool-progress-spinner',\n  templateUrl: './progress-spinner.component.html',\n  styleUrls: ['./progress-spinner.component.scss'],\n  imports: [\n    MatProgressSpinnerModule\n  ]\n})\nexport class ProgressSpinnerComponent {\n\n  @Input() public color = DEFAULT_SPINNER_OPTIONS.color;\n  @Input() public diameter = DEFAULT_SPINNER_OPTIONS.diameter;\n  @Input() public strokeWidth = DEFAULT_SPINNER_OPTIONS.strokeWidth;\n\n}\n","<mat-progress-spinner class=\"spinner\" [color]=\"color\" [diameter]=\"diameter\"\n    mode=\"indeterminate\" [strokeWidth]=\"strokeWidth\">\n</mat-progress-spinner>\n<div class=\"overlay\"></div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { BaseCollectionService } from 'arlas-web-components';\nimport { CollectionUnit, flattenData } from '../../tools/utils';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigService, ArlasStartupService } from '../startup/startup.service';\n\n@Injectable()\nexport class ArlasCollectionService extends BaseCollectionService {\n  private readonly appUnits: Map<string, CollectionUnit> = new Map();\n  private readonly displayName: Map<string, string> = new Map();\n  private readonly displayFieldName: Map<string, string | undefined> = new Map();\n  public FLAT_CHAR = '_';\n\n  public constructor(\n    private readonly collaborativeService: ArlasCollaborativesearchService,\n    private readonly configService: ArlasConfigService,\n    private readonly arlasStartupeService: ArlasStartupService\n  ) {\n    super();\n    this._initUnits();\n    this._initDisplayNames();\n  }\n\n  protected _initUnits() {\n    const appUnits = this.configService.getValue('arlas-wui.web.app.units') ?\n      this.configService.getValue('arlas-wui.web.app.units') : [];\n    appUnits.forEach((collectionUnit: CollectionUnit) => this.appUnits.set(collectionUnit.collection, collectionUnit));\n    /** retrocompatibility code for unit*/\n    const appUnit = this.configService.getValue('arlas-wui.web.app.unit');\n    if (appUnit || appUnits.length === 0) {\n      const collectionUnit = {\n        collection: this.collaborativeService.defaultCollection,\n        unit: !!appUnit ? appUnit : this.collaborativeService.defaultCollection,\n        ignored: false\n      };\n      this.appUnits.set(collectionUnit.collection, collectionUnit);\n    }\n    /** end of retrocompatibility code */\n  }\n\n  protected _initDisplayNames() {\n    if (this.arlasStartupeService.shouldRunApp) {\n      for (const key of this.arlasStartupeService.collectionsMap.keys()) {\n        const c = this.arlasStartupeService.collectionsMap.get(key);\n        this.displayName.set(key, c?.display_names?.collection ?? key);\n        const fields = c?.display_names?.fields;\n        if (fields) {\n          for (const f of Object.keys(fields)) {\n            this.displayFieldName.set(this.flatten(f), c?.display_names?.fields?.[f]);\n          }\n        }\n      }\n    }\n  }\n\n  public getUnit(collectionName: string): string {\n    const unit = this.appUnits.get(collectionName);\n    if (unit) {\n      return unit.unit;\n    }\n    return collectionName;\n  };\n\n  public getAllUnits(): CollectionUnit[] {\n    return [...this.appUnits.values()];\n  };\n\n  public getDisplayName(collectionName: string): string {\n    return this.displayName.get(collectionName) || collectionName;\n  }\n\n  public getDisplayFieldNameMap() {\n    return new Map(this.displayFieldName);\n  }\n\n  public getDisplayFieldName(fieldName: string): string {\n    return this.displayFieldName.get(this.flatten(fieldName)) || this.flatten(fieldName);\n  }\n\n  public isUnitIgnored(collectionName: string): boolean {\n    const unit = this.appUnits.get(collectionName);\n    if (unit) {\n      return unit.ignored;\n    }\n    return false;\n  }\n  // Retrieve all collections used in a dashboards\n  public getCollectionFromDashboard(config: any): Set<string> {\n    const flattenedConfig = flattenData(config);\n    const collections = new Set<string>();\n    Object.keys(flattenedConfig)\n      .filter(k =>\n        (k.indexOf('collection') >= 0 || (k.indexOf('additionalCollections') >= 0 && k.indexOf('collectionName') >= 0))\n        &&\n        !k.includes('collection-display-name')\n        &&\n        !k.includes('collectionDisplayName')\n\n      )\n      .forEach(k => collections.add(flattenedConfig[k]));\n    return collections;\n  }\n\n  public flatten(f: string): string {\n    return f?.replace(/\\./g, this.FLAT_CHAR);\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Aggregation, AggregationResponse, ComputationRequest, ComputationResponse, Filter, Hits } from 'arlas-api';\nimport { getAggregationPrecision, getFieldValue, HistogramContributor, ResultListContributor, TreeContributor } from 'arlas-web-contributors';\nimport { Collaboration, Contributor, projType } from 'arlas-web-core';\nimport { Observable, of } from 'rxjs';\nimport { map, mergeMap } from 'rxjs/operators';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasCollectionService } from '../collection/arlas-collection.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\nimport { ArlasConfigService } from '../startup/startup.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ArlasExportCsvService {\n\n  public constructor(private collaborativesearchService: ArlasCollaborativesearchService, private configService: ArlasConfigService,\n    private settingsService: ArlasSettingsService, private translate: TranslateService,\n    private arlasCollectionService: ArlasCollectionService) { }\n\n  public export(contributor: Contributor, stayAtFirstLevel: boolean, contributorType?: string): Observable<Blob> {\n    return this.compute(contributor, contributorType).pipe(map(data => {\n      const csvData = new Array<Array<string>>();\n      const header = new Array<string>();\n      (<TreeContributor>contributor).getAggregations().forEach(agg => {\n        header.push(this.translate.instant(this.arlasCollectionService.getDisplayFieldName(agg.field)));\n      });\n      header.push(this.translate.instant('count'));\n      if ((<TreeContributor>contributor).getAggregations()[0].metrics) {\n        (<TreeContributor>contributor).getAggregations()[0].metrics?.forEach(m => {\n          header.push(this.translate.instant('HEADER_EXPORT',\n            {field: this.translate.instant(this.arlasCollectionService.getDisplayFieldName(m.collect_field)),\n              metric: this.translate.instant(m.collect_fct.toString())\n            }));\n        });\n      }\n      csvData.push(header);\n      this.populateCSV(csvData, [], data, 0, (<TreeContributor>contributor).getAggregations(), stayAtFirstLevel);\n      const CSV = csvData.map(l => l.join(';')).join('\\n');\n      const contentType = 'text/csv';\n      const csvFile = new Blob([CSV], { type: contentType });\n      return csvFile;\n    }));\n  }\n\n  public compute(contributor: Contributor, contributorType?: string): Observable<AggregationResponse> {\n    let aggResponse: Observable<AggregationResponse> = of();\n    if (!contributorType) {\n      contributorType = this.configService.getValue('arlas.web.contributors')\n        .find((cont: any) => cont.identifier === contributor.identifier).type;\n    }\n    switch (contributorType) {\n      case 'tree': {\n        const aggsOriginal: Aggregation[] = (<TreeContributor>contributor).getAggregations();\n        const aggsForExport = new Array<Aggregation>();\n        aggsOriginal.forEach(agg => {\n          aggsForExport.push({...agg});\n        });\n        aggsForExport.filter(agg => agg.type === Aggregation.TypeEnum.Term).map(a => a.size = '10000');\n        aggResponse = this.collaborativesearchService.resolveButNotAggregation(\n          [projType.aggregate, aggsForExport], this.collaborativesearchService.collaborations, contributor.collection);\n        break;\n      }\n      case 'histogram': {\n        aggResponse = this.fetchHistogramData$(contributor);\n        break;\n      }\n    }\n    return aggResponse;\n  }\n\n  public fetchHistogramData$(contributor: Contributor): Observable<AggregationResponse> {\n    const collaborations = new Map<string, Collaboration>();\n    this.collaborativesearchService.collaborations.forEach((k, v) => {\n      collaborations.set(v, k);\n    });\n    const histogramExportMaxBuckets = this.settingsService.getHistogramNbBucketAtExport();\n    const field = (<HistogramContributor>contributor).getField();\n    const aggregations = (<HistogramContributor>contributor).getAggregations();\n    const agg = this.collaborativesearchService\n      .resolveButNotComputation(\n        [\n          projType.compute,\n          { filter: undefined, field: field, metric: ComputationRequest.MetricEnum.SPANNING }\n        ],\n        collaborations,\n        contributor.collection\n      )\n      .pipe(\n        map((computationResponse: ComputationResponse) => {\n          const dataRange = computationResponse.value || 0;\n          const aggregationPrecision = getAggregationPrecision(histogramExportMaxBuckets, dataRange, aggregations[0].type);\n          const result = {\n            aggregationPrecision\n          };\n          return result;\n        }),\n        map((r => {\n          aggregations[0].interval = r.aggregationPrecision;\n          return this.collaborativesearchService.resolveButNotAggregation(\n            [projType.aggregate, aggregations], collaborations, contributor.collection);\n        }\n        )),\n        mergeMap(a => a)\n      );\n    return agg;\n  }\n  /**\n   * Fetches the resulist data by taking into account the current sort/geosort, columns and details of the resultlist.\n   * The number of elements fetched is configured at the applicative level with `resultlist.export_size` in settings.yaml .\n   * @param contributor Resultlist contributor\n   * @param filter an optional filter to add to the collaboration filters if needed\n   * @returns an Observable (rxjs) of arlas Hits.\n   */\n  public fetchResultlistData$(contributor: ResultListContributor, filter?: Filter): Observable<Hits> {\n    const size = this.settingsService.getResultlistSettings()?.export_size;\n    if (!size) {\n      throw new Error('[ARLAS][EXPORT][LIST] No configuration found for the size of the resultlist export');\n    }\n    return contributor.fetch$(size, contributor.getAllFields().map(af => af.field), filter);\n  }\n\n  /**\n   * Exports hits as CSV file.\n   * The columns of the CSV are retrieved from `contributor.getAllFields()` method.\n   * @param contributor Resultlist contributor\n   * @param hits arlas Hits to be exported as CSV\n   */\n  public exportResultlist(contributor: ResultListContributor, hits: Hits): void {\n    const hitsList = hits.hits;\n    const csvData = new Array<Array<string>>();\n    const fields = contributor.getAllFields();\n    csvData.push(fields.map(h => h.displayName));\n    if (hitsList !== undefined && hitsList.length > 0) {\n      for (let i = 0; i < hitsList.length; i++) {\n        const currentLine = new Array<string>();\n        const data = hitsList[i].data;\n        fields.forEach(f => {\n          const value = getFieldValue(f.field, data);\n          currentLine.push(value !== undefined ? value : '-');\n        });\n        csvData.push(currentLine);\n      }\n    }\n    const CSV = csvData.map(l => l.join(';')).join('\\n');\n    const contentType = 'text/csv';\n    const csvFile = new Blob([CSV], { type: contentType });\n    const a = document.createElement('a');\n    a.download = contributor.getName()\n      .concat('_')\n      .concat(contributor.collection)\n      .concat('_')\n      .concat(new Date().getTime().toString())\n      .concat('.csv');\n    a.href = window.URL.createObjectURL(csvFile);\n    a.dataset.downloadurl = [contentType, a.download, a.href].join(':');\n    document.body.appendChild(a);\n    a.click();\n    document.body.removeChild(a);\n  }\n\n  private populateCSV(csvData: Array<Array<string>>, currentLine: Array<string>,\n    aggregationResponse: AggregationResponse,\n    aggregationLevel: number, aggregations: Aggregation[], stayAtFirstLevel: boolean): void {\n    const aggregationBuckets = aggregationResponse.elements;\n    if (aggregationBuckets !== undefined && aggregationBuckets.length > 0 && aggregationResponse.name !== undefined) {\n      const sumOtherDocCounts = aggregationResponse.sumotherdoccounts;\n      for (let i = 0; i < aggregationBuckets.length; i++) {\n        if (aggregationLevel === 0) {\n          currentLine = new Array<string>();\n        }\n        const bucket = aggregationBuckets[i];\n        const fieldValue = bucket.key;\n        currentLine[aggregationLevel] = fieldValue;\n        if (!stayAtFirstLevel && bucket.elements !== undefined && bucket.elements.length > 0 &&\n          bucket.elements[0].elements !== undefined && bucket.elements[0].elements.length > 0) {\n          this.populateCSV(csvData, currentLine, bucket.elements[0], aggregationLevel + 1, aggregations, stayAtFirstLevel);\n          const l = new Array();\n          for (let k = 0; k < aggregations.length; k++) {\n            if (k <= aggregationLevel) {\n              l.push(currentLine[k]);\n            } else {\n              l.push('ALL');\n            }\n          }\n          l.push(bucket.count.toString());\n          if (bucket.metrics) {\n            bucket.metrics.forEach(function (m) {\n              l.push(m.value);\n            });\n          }\n          csvData.push(l);\n        } else {\n          const line = new Array<string>();\n          currentLine.forEach(d => line.push(d));\n          const diff = Math.abs((line.length - aggregations.length));\n          for (let j = 1; j <= diff; j++) {\n            line[aggregationLevel + j] = '';\n          }\n          line.push(bucket.count.toString());\n          if (bucket.metrics) {\n            bucket.metrics.forEach(m => {\n              line.push(m.value);\n            });\n          }\n          csvData.push(line);\n        }\n        if (sumOtherDocCounts !== undefined && sumOtherDocCounts > 0 && i === aggregations.length - 1) {\n          const other = new Array();\n          for (let k = 0; k < aggregations.length; k++) {\n            if (k < aggregationLevel) {\n              other.push(currentLine[k]);\n            } else {\n              if (k === aggregationLevel) {\n                other.push('OTHER');\n\n              } else {\n                other.push('');\n              }\n            }\n          }\n          other.push(sumOtherDocCounts.toString());\n          if (bucket.metrics) {\n            bucket.metrics.forEach(m => other.push(''));\n          }\n          csvData.push(other);\n        }\n      }\n    }\n  }\n}\n","\n/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, Inject } from '@angular/core';\nimport { TimelineTooltip } from 'arlas-d3';\nimport { ArlasOverlayRef, CALENDAR_TIMELINE_TOOLTIP_DATA } from '../../tools/utils';\nimport { TranslatePipe } from '@ngx-translate/core';\n\n@Component({\n  selector: 'arlas-calendar-timeline-tooltip-overlay',\n  templateUrl: './calendar-timeline-tooltip-overlay.component.html',\n  styleUrls: ['./calendar-timeline-tooltip-overlay.component.scss'],\n  imports: [\n    TranslatePipe\n  ]\n})\nexport class CalendarTimelineTooltipOverlayComponent {\n\n  public constructor(public overlayRef: ArlasOverlayRef, @Inject(CALENDAR_TIMELINE_TOOLTIP_DATA) public tooltip: TimelineTooltip) {}\n\n}\n","<div class=\"wrapper\">\n  <div class=\"xline\" style=\"margin-bottom: 5px;\">\n    <div class=\"title\">\n      <div >{{tooltip.stringDate}}</div>\n      @let name = tooltip.data?.metadata?.name;\n      @if (name) {\n        <div class=\"category\">{{name}}</div>\n      }\n    </div>\n\n    @let thumbnail = tooltip.data?.metadata?.thumbnail;\n    @if (thumbnail) {\n      <div class=\"image\">\n        <img src=\"{{thumbnail}}\" width=\"250\" alt=\"{{'Tooltip thumbnail' | translate}}\">\n      </div>\n    }\n  </div>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, input } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\n\nexport interface WidgetTooltip<T> {\n  title: string;\n  dataType: 'numeric' | 'date' | 'keyword';\n  shown: boolean;\n  xPosition: number;\n  yPosition: number;\n  data: T;\n}\n\n@Component({\n  selector: 'arlas-widget-tooltip',\n  imports: [\n    TranslateModule\n  ],\n  templateUrl: './widget-tooltip.component.html',\n  styleUrl: './widget-tooltip.component.scss'\n})\nexport class WidgetTooltipComponent {\n  public title = input<string>();\n\n  /** Whether to hide the box-shadow */\n  public isFlat = input<boolean>(false);\n}\n","<div class=\"tooltip\" [class.tooltip--flat]=\"isFlat()\">\n  <div class=\"tooltip__header\">\n    {{ title() | translate }}\n  </div>\n\n  <div class=\"tooltip__xLabel tooltip__label\">\n    <ng-content select=\"[xLabel]\"></ng-content>\n  </div>\n\n  <div class=\"tooltip__xValue tooltip__value\">\n    <ng-content select=\"[xValue]\"></ng-content>\n  </div>\n\n  <div class=\"tooltip__yLabel tooltip__label\">\n    <ng-content select=\"[yLabel]\"></ng-content>\n  </div>\n\n  <div class=\"tooltip__yValue tooltip__value\">\n    <ng-content select=\"[yValue]\"></ng-content>\n  </div>\n</div>","\n/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ARLASDonutTooltip } from 'arlas-d3';\nimport { FormatNumberPipe } from 'arlas-web-components';\nimport { DONUT_TOOLTIP_DATA } from '../../tools/utils';\nimport { WidgetTooltipComponent } from '../widget-tooltip/widget-tooltip.component';\n\n@Component({\n  selector: 'arlas-donut-tooltip-overlay',\n  templateUrl: './donut-tooltip-overlay.component.html',\n  styleUrls: ['./donut-tooltip-overlay.component.scss'],\n  imports: [\n    TranslatePipe,\n    WidgetTooltipComponent,\n    FormatNumberPipe\n  ]\n})\nexport class DonutTooltipOverlayComponent {\n  public tooltip = inject<ARLASDonutTooltip>(DONUT_TOOLTIP_DATA);\n\n  /** Computes the style for the columns of the x and y values based on the number of data in the tooltip */\n  protected valueStyle = (this.tooltip.content ?? []).map(c => '1fr').join(' ');\n}\n","<arlas-widget-tooltip [title]=\"tooltip.title\">\n  <ng-container xLabel>\n    ({{ 'key' | translate }})\n  </ng-container>\n\n  <div class=\"grid\" xValue [style.grid-template-columns]=\"valueStyle\">\n    @for (c of tooltip.content; track c) {\n      <div class=\"xValue\">\n        <div class=\"chip\" [style.backgroundColor]=\"c.color\"></div>\n        {{ c.value }}\n      </div>\n    }\n  </div>\n\n  <ng-container yLabel>\n    ({{ 'value' | translate }})\n  </ng-container>\n\n  <div yValue class=\"grid\" [style.grid-template-columns]=\"valueStyle\">\n    @for (c of tooltip.content; track c) {\n      <div class=\"yValue\">\n        <div class=\"metric\">{{c.metric | formatNumber}}</div>\n        <div class=\"percentage\">{{\"(\" +c.percentage +\" %)\"}}</div>\n      </div>\n    }\n  </div>\n</arlas-widget-tooltip>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { CommonModule } from '@angular/common';\nimport { Component, Inject } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { GetCollectionUnitPipe } from 'arlas-web-components';\nimport { ArlasOverlayRef, HISTOGRAM_TOOLTIP_DATA, HistogramTooltipExtended } from '../../tools/utils';\nimport { WidgetTooltipComponent } from '../widget-tooltip/widget-tooltip.component';\n\n@Component({\n  selector: 'arlas-histogram-tooltip-overlay',\n  templateUrl: './histogram-tooltip-overlay.component.html',\n  styleUrls: ['./histogram-tooltip-overlay.component.scss'],\n  imports: [\n    TranslateModule,\n    WidgetTooltipComponent,\n    CommonModule,\n    GetCollectionUnitPipe\n  ]\n})\nexport class HistogramTooltipOverlayComponent {\n  public interval: {\n    start?: Date | number | string;\n    end?: Date | number | string;\n  };\n\n  public displayText = true;\n\n  public constructor(\n    public overlayRef: ArlasOverlayRef,\n    @Inject(HISTOGRAM_TOOLTIP_DATA) public tooltip: HistogramTooltipExtended\n  ) {\n    const start = this.tooltip.xStartValue;\n    let end;\n    if (this.tooltip.xEndValue !== null && this.tooltip.xEndValue !== undefined) {\n      end = this.tooltip.xEndValue;\n    }\n    this.interval = {\n      start,\n      end\n    };\n\n    this.displayText = this.interval.end !== null && this.interval.end !== undefined &&\n      this.interval.start !== null && this.interval.start !== undefined;\n  }\n}\n","<arlas-widget-tooltip [title]=\"tooltip.title\">\n  <ng-container xLabel>\n    {{ tooltip.xLabel | translate }}\n    <span class=\"axis-label\">({{ 'x-axis' | translate }})</span>\n  </ng-container>\n\n  <ng-container xValue>\n    <ng-container *ngTemplateOutlet=\"intervalTemplate; context: {value: interval.start}\"></ng-container>\n    <!-- keep this because we ll need this later -->\n    @if (displayText) {\n      <span class=\"interval-text\">{{ 'to' | translate }}</span>\n    }\n    <ng-container *ngTemplateOutlet=\"intervalTemplate; context: {value: interval.end}\"></ng-container>\n    <ng-container *ngTemplateOutlet=\"intervalTextTemplate;\n      context: {\n        unit: tooltip.xUnit,\n        interval: tooltip.xRange?.unit,\n        intervalValue: tooltip.xRange?.value,\n        isTime: tooltip.dataType === 'time'\n        }\"></ng-container>\n  </ng-container>\n\n  <ng-container yLabel>\n    {{ tooltip.yLabel | translate }}\n    <span class=\"axis-label\">({{ 'y-axis' | translate }})</span>\n  </ng-container>\n\n  <ng-container yValue>\n    <table class=\"values\">\n      @let isSwimlane = tooltip.chartType === 'swimlane';\n      @let isHistogram = tooltip.chartType === 'histogram';\n      @for (y of tooltip.y; track y) {\n        <tr>\n          @if (isSwimlane && y.chartId) {\n            <td>\n              <div class=\"value-lane\">\n                {{ y.chartId | translate }}\n              </div>\n            </td>\n          } @else if (isHistogram) {\n            <td>\n              <div class=\"chip\" [style.backgroundColor]=\"y.color\"></div>\n            </td>\n          }\n\n          <td>\n            <div class=\"count\" [class.count--bold]=\"isSwimlane\">{{ y.value }}</div>\n          </td>\n\n          @if (isHistogram) {\n            @if (tooltip.dataType === 'time') {\n              <td>\n                <div class=\"value-unit\">\n                  {{ ((tooltip.yUnit && tooltip.yUnit.length > 0) ? tooltip.yUnit : y.chartId | getCollectionUnit) | translate }}\n                </div>\n              </td>\n            } @else if (tooltip.yUnit !== undefined && tooltip.yUnit !== '') {\n              <td>\n                <div class=\"value-unit\">{{ tooltip.yUnit | translate }}</div>\n              </td>\n            }\n          }\n        </tr>\n      }\n    </table>\n  </ng-container>\n</arlas-widget-tooltip>\n\n<!-- template for x and y values -->\n<ng-template #intervalTemplate let-value=\"value\" let-isTime=\"isTime\">\n  @if (value !== undefined && value !== null) {\n    <span class=\"interval-value\">\n      {{ value }}\n    </span>\n  }\n</ng-template>\n\n<!-- display the text after the interval -->\n<ng-template #intervalTextTemplate let-interval=\"interval\" let-intervalValue=\"intervalValue\"\n  let-unit=\"unit\" let-isTypeTime=\"isTime\">\n  @if (isTypeTime) {\n    <span class=\"interval-text\">{{ intervalValue }}</span>\n  } @else if (unit) {\n    <span class=\"interval-text\">{{ unit | translate }}</span>\n  }\n\n  @if (isTypeTime && interval) {\n    <span class=\"interval-text\">{{ interval | translate }}</span>\n  }\n  @if (!isTypeTime && intervalValue) {\n    <span class=\"interval-text\">({{ 'interval' | translate }} : {{ intervalValue }})</span>\n  }\n</ng-template>\n","\n/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n\nimport { Component, Inject } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { FormatNumberPipe } from 'arlas-web-components';\nimport { POWERBAR_TOOLTIP_DATA } from '../../tools/utils';\nimport { WidgetTooltipComponent } from '../widget-tooltip/widget-tooltip.component';\n\nexport interface ARLASPowerbarTooltip {\n  title: string;\n  key: string;\n  value: any;\n  progression: number;\n  color?: string;\n}\n@Component({\n  selector: 'arlas-powerbar-tooltip-overlay',\n  templateUrl: './powerbar-tooltip-overlay.component.html',\n  styleUrls: ['./powerbar-tooltip-overlay.component.scss'],\n  imports: [\n    TranslateModule,\n    WidgetTooltipComponent,\n    FormatNumberPipe\n]\n})\nexport class PowerbarTooltipOverlayComponent {\n\n  public constructor(@Inject(POWERBAR_TOOLTIP_DATA) public tooltip: ARLASPowerbarTooltip) { }\n\n}\n","<arlas-widget-tooltip [title]=\"tooltip.title\">\n  <ng-container xLabel>\n    ({{ 'key' | translate }})\n  </ng-container>\n\n  <ng-container xValue>\n    <div class=\"xValue\">\n      <div class=\"chip\" [style.backgroundColor]=\"tooltip.color\"></div>\n      {{ tooltip.key }}\n    </div>\n  </ng-container>\n\n  <ng-container yLabel>\n    ({{ 'value' | translate }})\n  </ng-container>\n\n  <ng-container yValue>\n    <div class=\"yValue\">\n      <div class=\"value\">{{tooltip.value | formatNumber}}</div>\n      <div class=\"percentage\">{{\"(\" +tooltip.progression +\" %)\"}}</div>\n    </div>\n  </ng-container>\n</arlas-widget-tooltip>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { OriginConnectionPosition, Overlay, OverlayConfig, OverlayConnectionPosition, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, ComponentType } from '@angular/cdk/portal';\nimport { ComponentRef, inject, Injectable, InjectionToken, Injector } from '@angular/core';\nimport { ARLASDonutTooltip, HistogramTooltip, TimelineTooltip } from 'arlas-d3';\nimport {\n  CalendarTimelineTooltipOverlayComponent\n} from '../../components/calendar-timeline-tooltip-overlay/calendar-timeline-tooltip-overlay.component';\nimport { DonutTooltipOverlayComponent } from '../../components/donut-tooltip-overlay/donut-tooltip-overlay.component';\nimport { HistogramTooltipOverlayComponent } from '../../components/histogram-tooltip-overlay/histogram-tooltip-overlay.component';\nimport {\n  ARLASPowerbarTooltip, PowerbarTooltipOverlayComponent\n} from '../../components/powerbar-tooltip-overlay/powerbar-tooltip-overlay.component';\nimport {\n  ArlasOverlayRef, CALENDAR_TIMELINE_TOOLTIP_DATA, DONUT_TOOLTIP_DATA, HISTOGRAM_TOOLTIP_DATA, HistogramTooltipExtended, POWERBAR_TOOLTIP_DATA\n} from '../../tools/utils';\n\n\nexport interface ToolTipConfig<T> {\n  panelClass?: string;\n  hasBackdrop?: boolean;\n  backdropClass?: string;\n  data?: T;\n}\n\nconst DEFAULT_TOOLTIP_CONFIG: ToolTipConfig<any> = {\n  hasBackdrop: false,\n  panelClass: 'tm-file-preview-dialog-panel'\n};\n\n@Injectable()\nexport class ArlasOverlayService {\n  private readonly overlay = inject(Overlay);\n  private readonly injector = inject(Injector);\n\n  public openHistogramTooltip(config: ToolTipConfig<HistogramTooltip>, elementRef: HTMLDivElement,\n      xOffset: number, yOffset: number, right: boolean) {\n    return this.openChartTooltip(config, 'histogram', elementRef, xOffset, yOffset, right);\n  }\n\n  public openCalendarTimelineTooltip(config: ToolTipConfig<TimelineTooltip>, element: HTMLDivElement, xOffset: number,\n    yOffset: number, right: boolean) {\n    return this.openTooltip(config, element, xOffset, yOffset, right, CalendarTimelineTooltipOverlayComponent, CALENDAR_TIMELINE_TOOLTIP_DATA);\n  }\n\n  public openDonutTooltip(config: ToolTipConfig<ARLASDonutTooltip>, element: HTMLDivElement, xOffset: number, yOffset: number, right: boolean) {\n    return this.openTooltip(config, element, xOffset, yOffset, right, DonutTooltipOverlayComponent, DONUT_TOOLTIP_DATA);\n  }\n\n  public openPowerbarTooltip(config: ToolTipConfig<ARLASPowerbarTooltip>, element: HTMLDivElement, xOffset: number,\n    yOffset: number, right: boolean) {\n    return this.openTooltip(config, element, xOffset, yOffset, right, PowerbarTooltipOverlayComponent, POWERBAR_TOOLTIP_DATA);\n  }\n\n  public openSwimlaneTooltip(config: ToolTipConfig<HistogramTooltip>, elementRef: HTMLDivElement,\n      xOffset: number, yOffset: number, right: boolean) {\n    return this.openChartTooltip(config, 'swimlane', elementRef, xOffset, yOffset, right);\n  }\n\n  /**\n   * For a Histogram or Swimlane chart, opens the tooltip\n   */\n  private openChartTooltip(config: ToolTipConfig<HistogramTooltip>, chartType: 'histogram' | 'swimlane',\n    elementRef: HTMLDivElement, xOffset: number, yOffset: number, right: boolean) {\n\n    const specificConfig: ToolTipConfig<HistogramTooltipExtended> = {\n      ...config,\n      data: {\n        ...config.data,\n        chartType\n      }\n    };\n    return this.openTooltip(specificConfig, elementRef, xOffset, yOffset, right, HistogramTooltipOverlayComponent, HISTOGRAM_TOOLTIP_DATA);\n  }\n\n  private openTooltip<T, U>(config: ToolTipConfig<T>, element: HTMLDivElement, xOffset: number,\n    yOffset: number, right: boolean, componentType: ComponentType<U>, token: InjectionToken<T>) {\n    const dialogConfig = { ...DEFAULT_TOOLTIP_CONFIG, ...config };\n\n    const overlayRef = this.createTooltipOverlay(dialogConfig, element, xOffset, yOffset, right);\n    // Returns an OverlayRef which is a PortalHost\n    const componentActionsRef = new ArlasOverlayRef(overlayRef);\n    this.attachTooltipContainer(overlayRef, dialogConfig, componentActionsRef, componentType, token);\n\n    return componentActionsRef;\n  }\n\n  private createTooltipOverlay<T>(config: ToolTipConfig<T>, element: HTMLDivElement, xOffset: number, yOffset: number, right: boolean) {\n    // Returns an OverlayConfig\n    const overlayConfig = this.getOverlayConfig(config, element, xOffset, yOffset, right, /** bottom */ false);\n    // Returns an OverlayRef\n    return this.overlay.create(overlayConfig);\n  }\n\n  private createTooltipInjector<T>(config: ToolTipConfig<T>, ref: ArlasOverlayRef, token: InjectionToken<any>): Injector {\n    return Injector.create({\n      parent: this.injector,\n      providers: [\n        { provide: ArlasOverlayRef, useValue: ref },\n        { provide: token, useValue: config.data }\n      ]\n    });\n  }\n\n  private attachTooltipContainer<T, U>(overlayRef: OverlayRef, config: ToolTipConfig<T>, arlasOverlayRef: ArlasOverlayRef,\n    componentType: ComponentType<U>, token: InjectionToken<any>) {\n    const injector = this.createTooltipInjector(config, arlasOverlayRef, token);\n    const containerPortal = new ComponentPortal(componentType, null, injector);\n    const containerRef: ComponentRef<U> = overlayRef.attach(containerPortal);\n    return containerRef.instance;\n  }\n\n  private getOverlayConfig(config: any, element: HTMLDivElement, xOffset: number, yOffset: number,\n    right: boolean, bottom: boolean): OverlayConfig {\n    const origins = {\n      topLeft: { originX: 'start', originY: 'top' } as OriginConnectionPosition,\n      topRight: { originX: 'end', originY: 'top' } as OriginConnectionPosition,\n      bottomLeft: {\n        originX: 'start',\n        originY: 'bottom'\n      } as OriginConnectionPosition,\n      bottomRight: {\n        originX: 'end',\n        originY: 'bottom'\n      } as OriginConnectionPosition,\n      topCenter: {\n        originX: 'center',\n        originY: 'top'\n      } as OriginConnectionPosition,\n      bottomCenter: {\n        originX: 'center',\n        originY: 'bottom'\n      } as OriginConnectionPosition\n    };\n    const overlays = {\n      topLeft: {\n        overlayX: 'start',\n        overlayY: 'top'\n      } as OverlayConnectionPosition,\n      topRight: {\n        overlayX: 'end',\n        overlayY: 'top'\n      } as OverlayConnectionPosition,\n      bottomLeft: {\n        overlayX: 'start',\n        overlayY: 'bottom'\n      } as OverlayConnectionPosition,\n      bottomRight: {\n        overlayX: 'end',\n        overlayY: 'bottom'\n      } as OverlayConnectionPosition,\n      topCenter: {\n        overlayX: 'center',\n        overlayY: 'top'\n      } as OverlayConnectionPosition,\n      bottomCenter: {\n        overlayX: 'center',\n        overlayY: 'bottom'\n      } as OverlayConnectionPosition\n    };\n    const origin = right ? (bottom ? origins.bottomRight : origins.topRight) : (bottom ? origins.bottomLeft : origins.topLeft);\n    const overlay = right ? (bottom ? overlays.bottomRight : overlays.topRight) : (bottom ? overlays.bottomLeft : overlays.topLeft);\n    const positionStrategy = this.overlay.position().flexibleConnectedTo(element)\n      .withDefaultOffsetX(xOffset)\n      .withDefaultOffsetY(yOffset).withPositions([{\n        originX: origin.originX,\n        originY: origin.originY,\n        overlayX: overlay.overlayX,\n        overlayY: overlay.overlayY\n      }]);\n\n\n    const overlayConfig = new OverlayConfig({\n      hasBackdrop: config.hasBackdrop,\n      backdropClass: config.backdropClass,\n      panelClass: config.panelClass,\n      scrollStrategy: this.overlay.scrollStrategies.close(),\n      positionStrategy\n    });\n\n    return overlayConfig;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { XBucket } from 'arlas-d3';\nimport { Subject } from 'rxjs';\n\n\n/**\n * This service is a notifier of events occuring on a widget, so that any other component can intercept it and consume it if needed\n * for its own behaviour.\n */\n\n@Injectable({\n  providedIn: 'root',\n})\nexport class WidgetNotifierService {\n\n  private readonly hoveredBucketSource = new Subject<XBucket | undefined>();\n  public hoveredBucket$ = this.hoveredBucketSource.asObservable();\n\n  /**\n   * Notifies the event of hovering a histogram bucket.\n   * @param b The hovered x-bucket on the histogram.\n   */\n  public notifyBucketHover(b: XBucket | undefined): void {\n    this.hoveredBucketSource.next(b);\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { WidgetConfiguration } from '../../tools/utils';\n\nexport interface FilterShortcutConfiguration {\n  uuid: string;\n  title: string;\n  order: 1;\n  component?: WidgetConfiguration;\n}\n\nconst UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n\nexport function isShortcutID(id: string): boolean {\n  const match = id.match(UUID_REGEX);\n  if (match) {\n    return match.length !== 0;\n  } else {\n    return false;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { isShortcutID } from '../filter-shortcut/filter-shortcut.utils';\n\n/**\n * For a Swimlane or Histogram chart, computes the x and y offset at which to display the tooltip\n * @param chartWidth Width of the chart\n * @param groupLength Number of widgets in the chart's group\n * @param position Position of the chart in the group\n * @param contributorId Id of its contributor\n * @param detailed Whether the tooltip is for the detailed version of the chart (histogram only)\n */\nexport function computeChartTooltipOffset(chartWidth: number, groupLength: number, position: number, contributorId: string, detailed?: boolean) {\n  let yOffset = 20;\n\n  const analyticsBoardWidth = 445;\n  let itemPerLine = 1;\n  let xOffset = 470;\n  if (chartWidth === Math.ceil(analyticsBoardWidth / 2) - 6 ||\n      chartWidth === Math.ceil(analyticsBoardWidth / 2) - 12) {\n    itemPerLine = 2;\n    if (position % itemPerLine === 1) {\n      xOffset = 240;\n    }\n  } else if (chartWidth === Math.ceil(analyticsBoardWidth / 3) - 6 ||\n      chartWidth === Math.ceil(analyticsBoardWidth / 3) - 12) {\n    itemPerLine = 3;\n    if (position % itemPerLine === 1) {\n      xOffset = 320;\n      if (position === groupLength - 1) {\n        xOffset = 245;\n      }\n    } else if (position % itemPerLine === 2) {\n      xOffset = 170;\n    }\n  } else if (isShortcutID(contributorId)) {\n    xOffset = 20;\n    yOffset = 105;\n  }\n\n  return { xOffset, yOffset };\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport {\n  AfterViewInit, ChangeDetectorRef, Component, EventEmitter, input, Input, OnDestroy, OnInit, Output, signal, ViewChild\n} from '@angular/core';\nimport { DataType, HistogramTooltip, Position } from 'arlas-d3';\nimport { HistogramComponent } from 'arlas-web-components';\nimport { DetailedHistogramContributor, HistogramContributor, SelectedOutputValues } from 'arlas-web-contributors';\nimport { OperationEnum } from 'arlas-web-core';\nimport { filter, Subject, takeUntil } from 'rxjs';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasOverlayService } from '../../services/overlays/overlay.service';\nimport { ArlasConfigService } from '../../services/startup/startup.service';\nimport { WidgetNotifierService } from '../../services/widget/widget.notifier.service';\nimport { ArlasOverlayRef, SpinnerOptions } from '../../tools/utils';\nimport { DEFAULT_SPINNER_OPTIONS, ProgressSpinnerComponent } from '../progress-spinner/progress-spinner.component';\nimport { computeChartTooltipOffset } from './utils';\n\n\n/**\n * A Widget wraps a component from ARLAS-web-components and bind it to its contributor. The component has thus input data to plot.\n * Note: This component is binded to ARLAS-wui configuration\n */\n@Component({\n  selector: 'arlas-tool-histogram-widget',\n  templateUrl: './histogram-widget.component.html',\n  styleUrls: ['./histogram-widget.component.scss'],\n  imports: [\n    ProgressSpinnerComponent,\n    HistogramComponent\n  ]\n})\nexport class HistogramWidgetComponent implements OnInit, OnDestroy, AfterViewInit {\n\n  public showDetailedHistogram = false;\n  public detailedContributor?: DetailedHistogramContributor;\n  public detailedTimelineIntervalSelection?: SelectedOutputValues;\n  public showSpinner = false;\n  private histogramIsFiltered = false;\n  private applicationFirstLoad = false;\n  private isDetailedIntervalBrushed = false;\n\n  public tooltipEvent: Subject<HistogramTooltip> = new Subject<HistogramTooltip>();\n\n  public histogramOverlayRef?: ArlasOverlayRef;\n\n  protected readonly Position = Position;\n\n  protected readonly isHover = signal(false);\n\n  public contributor = input.required<HistogramContributor>();\n  public componentInputs = input.required<any>();\n  /**\n   * @Input : Angular\n   * @description Whether we dispylay the export csv button\n   */\n  @Input() public showExportCsv = false;\n  /**\n   * @Input : Angular\n   * @description Position of the widget in the group\n   */\n  public position = input.required<number>();\n\n  /**\n   * @Input : Angular\n   * @description Number of widgets in the group to whom this widget belongs\n   */\n  public groupLength = input.required<number>();\n\n  /**\n   * @Input : Angular\n   * @description Spinner options\n   */\n  @Input() public spinnerOptions: SpinnerOptions = DEFAULT_SPINNER_OPTIONS;\n\n  /**\n   * @Input : Angular\n   * @description Whether to display a detailed histogram\n   */\n  @Input() public noDetail = true;\n\n  @Output() public exportCsvEvent: Subject<{ contributor: HistogramContributor; type: string; firstLevel: boolean; }> = new Subject();\n\n\n  /**\n   * @Output : Angular\n   * @description Emits an output that comes from the component (ARLAS-web-components). The emitted output has information about\n   * the `origin` which is the contributor id of the component; `event` the name of the event; and eventually `data` which contains\n   * the emitted data from the component.\n   */\n  @Output() public outEvents: Subject<{ origin: string; event: string; data?: any; }>\n    = new Subject<{ origin: string; event: string; data?: any; }>();\n\n  @Output() public currentInterval: EventEmitter<string> = new EventEmitter();\n\n  @ViewChild('histogram', { static: false }) public histogramComponent?: HistogramComponent;\n  @ViewChild('detailedhistogram', { static: false }) public detailedHistogramComponent?: HistogramComponent;\n\n  private readonly _onDestroy$ = new Subject<boolean>();\n\n  public constructor(\n    protected arlasCollaborativesearchService: ArlasCollaborativesearchService,\n    private readonly arlasConfigurationService: ArlasConfigService,\n    private readonly cdr: ChangeDetectorRef,\n    private readonly arlasOverlayService: ArlasOverlayService,\n    protected widgetNotifier: WidgetNotifierService\n  ) { }\n\n  public initDetailedContributor() {\n    if (this.contributor()) {\n      this.detailedContributor = new DetailedHistogramContributor(\n        this.contributor().collection + '-'\n        + this.contributor().identifier + '-arlas__detailed',\n        this.arlasCollaborativesearchService, this.arlasConfigurationService, this.contributor().collection,\n        false, undefined, this.contributor().getAggregations());\n\n      this.contributor().detailedHistrogramContributor = this.detailedContributor;\n      this.detailedContributor.updateData = false;\n      this.detailedContributor.range = undefined;\n      this.detailedContributor.annexedContributorId = this.contributor().identifier;\n      this.detailedContributor.useUtc = this.contributor().useUtc;\n      this.detailedContributor.selectionExtentPercentage = 0.02;\n      const detailedNbBuckets = this.contributor().getNbBuckets() ?? 50;\n      this.detailedContributor.setNbBuckets(detailedNbBuckets);\n      this.detailedContributor.setName(this.contributor().getName() + '__detailed');\n      this.detailedContributor.init(this.contributor().getAggregations(), this.contributor().getField(),\n        this.contributor().getJsonPath(), this.contributor().additionalCollections ?? []);\n    }\n  }\n\n  public ngOnInit() {\n    if (!this.noDetail) {\n      this.initDetailedContributor();\n      this.showDetailedHistogramOnCollaborationEnd();\n    }\n  }\n\n  public ngAfterViewInit() {\n    this.checkDisplayDetailedHistogram();\n  }\n\n  public ngOnDestroy() {\n    this.tooltipEvent.complete();\n    this.tooltipEvent.unsubscribe();\n\n    this.exportCsvEvent.complete();\n    this.exportCsvEvent.unsubscribe();\n\n    this._onDestroy$.next(true);\n    this._onDestroy$.complete();\n  }\n\n  public exportCsv(contributor: HistogramContributor) {\n    this.exportCsvEvent.next({\n      contributor,\n      type: 'histogram',\n      firstLevel: false\n    });\n  }\n\n  /**\n   * Recalculates the new data of detailed histogram and resets its own current selection.\n   * @param selections List containing only the current selection of detailed histogram\n   */\n  public onDetailedIntervalBrushed(selections: SelectedOutputValues[]): void {\n    this.showSpinner = true;\n    this.isDetailedIntervalBrushed = true;\n    this.detailedTimelineIntervalSelection = { startvalue: selections[0].startvalue, endvalue: selections[0].endvalue };\n    this.contributor().valueChanged(this.contributor().intervalListSelection.concat(selections));\n  }\n\n\n  /** When the main histogram selection is brushed\n   * Hide the detailed histogram if the selection range is greater than 20% of the histogram range\n   */\n  public onMainIntervalBrushed(event: SelectedOutputValues[]) {\n    const histogramRange = this.contributor().range;\n    const selection = event[event.length - 1];\n    if (histogramRange && !!selection) {\n      const detailedHistogramRange = (+selection.endvalue - +selection.startvalue);\n      this.showDetailedHistogram = !this.noDetail && (detailedHistogramRange <= 0.2 * histogramRange);\n      this.resizeMainHistogram();\n      if (this.detailedContributor) {\n        this.detailedContributor.updateData = this.showDetailedHistogram;\n      }\n    }\n    this.contributor().valueChanged(event);\n    this.showSpinner = this.showDetailedHistogram;\n  }\n\n  /** reposition interval of the main histogram after the detail histogram finishes plotting */\n  public afterDetailedDataPlotted(e: string) {\n    if (this.detailedContributor) {\n      // If detailed histogram is replotted after moving its own brush.\n      if (this.isDetailedIntervalBrushed && this.detailedContributor.currentSelectedInterval) {\n        // Reset current selection of detailed histogram after it is plotted\n        this.detailedTimelineIntervalSelection = {\n          startvalue: this.detailedContributor.currentSelectedInterval.startvalue,\n          endvalue: this.detailedContributor.currentSelectedInterval.endvalue\n        };\n        // Apply the current selection of detailed histogram on the main histogram\n        this.contributor().intervalSelection = {\n          startvalue: this.detailedContributor.currentSelectedInterval.startvalue,\n          endvalue: this.detailedContributor.currentSelectedInterval.endvalue\n        };\n      } else { // If detailed histogram is replotted after moving the brush of the main histogram or when the app is loaded.\n        const selection = this.detailedContributor.currentSelectedInterval;\n        if (selection) {\n          this.detailedTimelineIntervalSelection = { startvalue: selection.startvalue, endvalue: selection.endvalue };\n        } else {\n          this.applicationFirstLoad = true;\n        }\n      }\n      this.isDetailedIntervalBrushed = false;\n      this.cdr.detectChanges();\n    }\n  }\n\n  public showHistogramTooltip(tooltip: HistogramTooltip, e: HTMLDivElement, xOffset: number, yOffset: number) {\n    if (this.histogramOverlayRef) {\n      this.histogramOverlayRef.close();\n    }\n    if (tooltip?.shown) {\n      this.histogramOverlayRef = this.arlasOverlayService.openHistogramTooltip({ data: tooltip }, e, xOffset, yOffset, false);\n    }\n  }\n\n  public hideHistogramTooltip() {\n    this.isHover.set(false);\n    if (this.histogramOverlayRef) {\n      this.histogramOverlayRef.close();\n    }\n  }\n\n  public emitTooltip(tooltip: HistogramTooltip, e: HTMLDivElement, detailed: boolean) {\n    const { xOffset, yOffset } = computeChartTooltipOffset(\n      this.componentInputs().chartWidth, this.groupLength(), this.position(), this.contributor().identifier, detailed);\n    this.showHistogramTooltip(tooltip, e, xOffset, yOffset);\n  }\n\n  private resizeMainHistogram() {\n    if (!this.histogramComponent?.histogram) {\n      return;\n    }\n\n    this.histogramComponent.histogram.histogramParams.chartHeight = this.showDetailedHistogram ?\n      this.componentInputs().chartHeight * 0.5 : this.componentInputs().chartHeight;\n    this.histogramComponent.histogram.histogramParams.yLabels = this.showDetailedHistogram ? 2 : this.componentInputs().yLabels;\n    this.histogramComponent.resizeHistogram();\n  }\n\n  /** show detailed histogram if selection range is less than 20% of the main histogram range */\n  private showDetailedHistogramOnCollaborationEnd(): void {\n    this.arlasCollaborativesearchService.collaborationBus.pipe(filter(c => ((!!this.contributor && this.histogramComponent\n      && c.id === this.contributor().identifier) || c.all)), takeUntil(this._onDestroy$))\n      .subscribe(c => {\n        if (c.operation === OperationEnum.remove) {\n          this.histogramIsFiltered = false;\n          this.hideDetailedHistogram();\n          if (this.histogramComponent?.histogram) {\n            this.histogramComponent.histogram.histogramParams.chartHeight = this.componentInputs().chartHeight;\n            this.histogramComponent.resizeHistogram();\n          }\n        } else if (c.operation === OperationEnum.add) {\n          this.histogramIsFiltered = true;\n          let left = this.histogramComponent?.histogram?.histogramParams.startValue;\n          let right = this.histogramComponent?.histogram?.histogramParams.endValue;\n          if (this.histogramComponent?.dataType === DataType.time) {\n            this.currentInterval.emit(`${left} - ${right}`);\n          } else {\n            if (this.histogramComponent?.xUnit) {\n              left = left + ' ' + this.histogramComponent.xUnit;\n              right = right + ' ' + this.histogramComponent.xUnit;\n            }\n            this.currentInterval.emit(`${left} - ${right}`);\n          }\n          this.checkDisplayDetailedHistogram();\n        }\n      });\n\n    this.arlasCollaborativesearchService.ongoingSubscribe.pipe(takeUntil(this._onDestroy$)).subscribe(nb => {\n      if (this.arlasCollaborativesearchService.totalSubscribe === 0 && this.histogramIsFiltered) {\n        this.checkDisplayDetailedHistogram();\n      }\n    });\n  }\n\n  /**\n   * Based on the extent of the selection of the histogram, checks whether the detailed histogram should be displayed.\n   * If so, resizes the histograms and fetches data if no data is present for the detailed histogram.\n   * Otherwise, hides the detailed histogram, and resizes the main one.\n   */\n  private checkDisplayDetailedHistogram() {\n    const histogramRange = this.contributor().range;\n    this.showSpinner = false;\n    const selection = this.contributor().intervalSelection;\n    if (histogramRange && !!selection) {\n      const detailedHistogramRange = (+selection.endvalue - +selection.startvalue);\n      this.showDetailedHistogram = (detailedHistogramRange <= 0.2 * histogramRange);\n      this.resizeMainHistogram();\n      if (this.showDetailedHistogram && this.detailedContributor) {\n        if (!this.detailedContributor) {\n          this.initDetailedContributor();\n        }\n        this.detailedContributor.updateData = true;\n        /** If no data has been fetched previously in the detailed contributor, then the range is necessarily undefined\n         * Which means we should trigger the collaboration of th\n         */\n        if (this.detailedContributor.range === undefined || this.detailedContributor.range === null) {\n          // Simulate a collaboration event that will result in a fetchData\n          this.detailedContributor.updateFromCollaboration({\n            id: 'url',\n            operation: OperationEnum.add,\n            all: false\n          });\n        }\n\n        if (this.detailedHistogramComponent?.histogram) {\n          this.detailedHistogramComponent.histogram.histogramParams.chartHeight = this.componentInputs().chartHeight;\n          this.detailedHistogramComponent.resizeHistogram();\n        }\n      } else {\n        this.hideDetailedHistogram();\n      }\n      if (this.applicationFirstLoad && !!this.detailedContributor && this.detailedContributor.currentSelectedInterval) {\n        // Sets current selection of detailed histogram\n        const select = this.detailedContributor.currentSelectedInterval;\n        this.detailedTimelineIntervalSelection = { startvalue: select.startvalue, endvalue: select.endvalue };\n        this.applicationFirstLoad = false;\n      }\n    } else {\n      this.hideDetailedHistogram();\n      if (this.histogramComponent?.histogram) {\n        this.histogramComponent.histogram.histogramParams.chartHeight = this.componentInputs().chartHeight;\n        this.histogramComponent.resizeHistogram();\n      }\n    }\n  }\n\n  private hideDetailedHistogram() {\n    this.showDetailedHistogram = false;\n    if (this.detailedContributor) {\n      this.detailedContributor.updateData = false;\n      this.detailedContributor.range = undefined;\n    }\n  }\n}\n","<div [class.detail-status]=\"showDetailedHistogram\">\n  <arlas-tool-progress-spinner [strokeWidth]=\"spinnerOptions.strokeWidth\" [color]=\"spinnerOptions.color\" [diameter]=\"spinnerOptions.diameter\"\n    [hidden]=\"!(showSpinner || (detailedContributor?.isDataUpdating || contributor().isDataUpdating))\"></arlas-tool-progress-spinner>\n\n  @if (showDetailedHistogram && detailedContributor) {\n    <div (mouseleave)=\"hideHistogramTooltip()\" (mouseenter)=\"isHover.set(true)\" #detailed class=\"histogram detailed-histogram\" [class.displayed-detail]=\"showDetailedHistogram\">\n      <arlas-histogram class=\"histogram-container\" #detailedhistogram [intervalListSelection]=\"$any(detailedContributor.intervalListSelection)\"\n        [intervalSelection]=\"$any(detailedTimelineIntervalSelection)\" (dataPlottedEvent)=\"afterDetailedDataPlotted($event)\"\n        [data]=\"detailedContributor.chartData\" (valuesListChangedEvent)=\"onDetailedIntervalBrushed($event)\"\n        [id]=\"componentInputs().id\" [dataType]=\"componentInputs().dataType\" [dataUnit]=\"componentInputs().dataUnit\"\n        [valuesDateFormat]=\"componentInputs().valuesDateFormat\"\n        [isHistogramSelectable]=\"componentInputs().isHistogramSelectable\"\n        [multiselectable]=\"componentInputs().multiselectable\"\n        [topOffsetRemoveInterval]=\"componentInputs().topOffsetRemoveInterval\"\n        [leftOffsetRemoveInterval]=\"componentInputs().leftOffsetRemoveInterval\"\n        [brushHandlesHeightWeight]=\"componentInputs().brushHandlesHeightWeight\" [chartType]=\"componentInputs().chartType\"\n        [chartTitle]=\"componentInputs().chartTitle\" [chartWidth]=\"componentInputs().chartWidth\"\n        [chartHeight]=\"componentInputs().chartHeight\" [customizedCssClass]=\"componentInputs().customizedCssClass\"\n        [xAxisPosition]=\"Position.top\" [descriptionPosition]=\"componentInputs().descriptionPosition\"\n        [xTicks]=\"componentInputs().xTicks\" [yTicks]=\"componentInputs().yTicks\" [xLabels]=\"componentInputs().xLabels\"\n        [yLabels]=\"componentInputs().yLabels\" [showXTicks]=\"componentInputs().showXTicks\"\n        [showYTicks]=\"componentInputs().showYTicks\" [showXLabels]=\"componentInputs().showXLabels\"\n        [showYLabels]=\"componentInputs().showYLabels\" [ticksDateFormat]=\"componentInputs().ticksDateFormat\"\n        [isSmoothedCurve]=\"componentInputs().isSmoothedCurve\" [barWeight]=\"componentInputs().barWeight\"\n        [paletteColors]=\"componentInputs().paletteColors\"\n        [applyOffsetOnAreaChart]=\"componentInputs().applyOffsetOnAreaChart\"\n        [displayOnlyIntervalsWithData]=\"componentInputs().displayOnlyIntervalsWithData\"\n        [yAxisStartsFromZero]=\"componentInputs().yAxisStartsFromZero\" [showStripes]=\"componentInputs().showStripes\"\n        [chartXLabel]=\"componentInputs().chartXLabel\" [shortYLabels]=\"componentInputs().shortYLabels\"\n        [useUtc]=\"detailedContributor.useUtc\"\n        (hoveredBucketEvent)=\"widgetNotifier.notifyBucketHover($event)\"\n        (tooltipEvent)=\"emitTooltip($event,detailed, true)\"\n        [xUnit]=\"componentInputs().xUnit\" [yUnit]=\"componentInputs().yUnit\"\n        [displayExportButton]=\"showExportCsv && isHover()\" (exportEvent)=\"exportCsv(detailedContributor)\"></arlas-histogram>\n    </div>\n  }\n\n  <div class=\"histogram\" (mouseleave)=\"hideHistogramTooltip()\" (mouseenter)=\"isHover.set(true)\" #main>\n    <arlas-histogram class=\"histogram-container\" #histogram [intervalListSelection]=\"$any(contributor().intervalListSelection)\"\n      [intervalSelection]=\"$any(contributor().intervalSelection)\" [data]=\"contributor().chartData\"\n      (valuesListChangedEvent)=\"onMainIntervalBrushed($event)\"\n      [id]=\"componentInputs().id\" [dataType]=\"componentInputs().dataType\" [dataUnit]=\"componentInputs().dataUnit\"\n      [valuesDateFormat]=\"componentInputs().valuesDateFormat\"\n      [isHistogramSelectable]=\"componentInputs().isHistogramSelectable\"\n      [multiselectable]=\"componentInputs().multiselectable\"\n      [topOffsetRemoveInterval]=\"componentInputs().topOffsetRemoveInterval\"\n      [leftOffsetRemoveInterval]=\"componentInputs().leftOffsetRemoveInterval\"\n      [brushHandlesHeightWeight]=\"componentInputs().brushHandlesHeightWeight\" [chartType]=\"componentInputs().chartType\"\n      [chartTitle]=\"componentInputs().chartTitle\" [chartWidth]=\"componentInputs().chartWidth\"\n      [chartHeight]=\"componentInputs().chartHeight\" [customizedCssClass]=\"componentInputs().customizedCssClass\"\n      [xAxisPosition]=\"componentInputs().xAxisPosition\" [descriptionPosition]=\"componentInputs().descriptionPosition\"\n      [xTicks]=\"componentInputs().xTicks\" [yTicks]=\"componentInputs().yTicks\" [xLabels]=\"componentInputs().xLabels\"\n      [yLabels]=\"componentInputs().yLabels\" [showXTicks]=\"componentInputs().showXTicks\"\n      [showYTicks]=\"componentInputs().showYTicks\" [showXLabels]=\"componentInputs().showXLabels\"\n      [showYLabels]=\"componentInputs().showYLabels\" [ticksDateFormat]=\"componentInputs().ticksDateFormat\"\n      [isSmoothedCurve]=\"componentInputs().isSmoothedCurve\" [barWeight]=\"componentInputs().barWeight\"\n      [paletteColors]=\"componentInputs().paletteColors\" [applyOffsetOnAreaChart]=\"componentInputs().applyOffsetOnAreaChart\"\n      [displayOnlyIntervalsWithData]=\"componentInputs().displayOnlyIntervalsWithData\"\n      [yAxisStartsFromZero]=\"componentInputs().yAxisStartsFromZero\" [showStripes]=\"componentInputs().showStripes\"\n      [chartXLabel]=\"componentInputs().chartXLabel\"\n      [chartYLabel]=\"componentInputs().chartYLabel\" [shortYLabels]=\"componentInputs().shortYLabels\"\n      [useUtc]=\"contributor().useUtc\"\n      (tooltipEvent)=\"emitTooltip($event, main, false)\"\n      [xUnit]=\"componentInputs().xUnit\" [yUnit]=\"componentInputs().yUnit\"\n      [displayExportButton]=\"showExportCsv && isHover()\" (exportEvent)=\"exportCsv(contributor())\"></arlas-histogram>\n  </div>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { HistogramContributor } from 'arlas-web-contributors';\nimport { Contributor } from 'arlas-web-core';\n\n@Pipe({\n  name: 'asHistogramContributor',\n})\nexport class AsHistogramContributorPipe implements PipeTransform {\n\n  public transform(contributor: Contributor): HistogramContributor {\n    return contributor as HistogramContributor;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { ResultListContributor } from 'arlas-web-contributors';\nimport { Contributor } from 'arlas-web-core';\n\n@Pipe({\n  name: 'asListContributor',\n})\nexport class AsListContributorPipe implements PipeTransform {\n\n  public transform(contributor: Contributor): ResultListContributor {\n    return contributor as ResultListContributor;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { ComputeContributor } from 'arlas-web-contributors';\nimport { Contributor } from 'arlas-web-core';\n\n@Pipe({\n  name: 'asMetricContributor',\n})\nexport class AsMetricContributorPipe implements PipeTransform {\n\n  public transform(contributor: Contributor): ComputeContributor {\n    return contributor as ComputeContributor;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { MetricsTableContributor } from 'arlas-web-contributors';\nimport { Contributor } from 'arlas-web-core';\n\n@Pipe({\n  name: 'asMetricsTableContributor',\n})\nexport class AsMetricsTableContributorPipe implements PipeTransform {\n\n  public transform(contributor: Contributor): MetricsTableContributor {\n    return contributor as MetricsTableContributor;\n  }\n\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { SwimLaneContributor } from 'arlas-web-contributors';\nimport { Contributor } from 'arlas-web-core';\n\n@Pipe({\n  name: 'asSwimlaneContributor',\n})\nexport class AsSwimlaneContributorPipe implements PipeTransform {\n\n  public transform(contributor: Contributor): SwimLaneContributor {\n    return contributor as SwimLaneContributor;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { TreeContributor } from 'arlas-web-contributors';\nimport { Contributor } from 'arlas-web-core';\n\n@Pipe({\n  name: 'asTreeContributor',\n})\nexport class AsTreeContributorPipe implements PipeTransform {\n\n  public transform(contributor: Contributor): TreeContributor {\n    return contributor as TreeContributor;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, computed, input, Input, OnInit, Output, ViewChild } from '@angular/core';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatSelectChange, MatSelectModule } from '@angular/material/select';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { Expression } from 'arlas-api';\nimport { ARLASDonutTooltip, ChartType, DataType, HistogramTooltip, Position, SwimlaneMode, SwimlaneRepresentation } from 'arlas-d3';\nimport {\n  CellBackgroundStyleEnum, DonutComponent, HistogramComponent, MetricComponent,\n  MetricsTableComponent, PowerBar, PowerbarsComponent, ResultListComponent\n} from 'arlas-web-components';\nimport { ComputeContributor, MetricsTableContributor, SwimLaneContributor, TreeContributor } from 'arlas-web-contributors';\nimport { CollaborationEvent, Contributor, OperationEnum } from 'arlas-web-core';\nimport { Subject, takeUntil } from 'rxjs';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasExportCsvService } from '../../services/export-csv/export-csv.service';\nimport { ArlasOverlayService } from '../../services/overlays/overlay.service';\nimport { ArlasStartupService } from '../../services/startup/startup.service';\nimport { ArlasOverlayRef, SpinnerOptions } from '../../tools/utils';\nimport { HistogramWidgetComponent } from '../histogram-widget/histogram-widget.component';\nimport { computeChartTooltipOffset } from '../histogram-widget/utils';\nimport { DEFAULT_SPINNER_OPTIONS } from '../progress-spinner/progress-spinner.component';\nimport { AsHistogramContributorPipe } from './contributor-pipes/as-histogram-contributor-pipe';\nimport { AsListContributorPipe } from './contributor-pipes/as-list-contributor-pipe';\nimport { AsMetricContributorPipe } from './contributor-pipes/as-metric-contributor-pipe';\nimport { AsMetricsTableContributorPipe } from './contributor-pipes/as-metrics-table-contributor-pipe';\nimport { AsSwimlaneContributorPipe } from './contributor-pipes/as-swimlane-contributor-pipe';\nimport { AsTreeContributorPipe } from './contributor-pipes/as-tree-contributor-pipe';\n\n/**\n * A Widget wraps a component from ARLAS-web-components and bind it to its contributor. The component has thus input data to plot.\n * Note: This component is binded to ARLAS-wui configuration\n */\n@Component({\n  selector: 'arlas-tool-widget',\n  templateUrl: './widget.component.html',\n  styleUrls: ['./widget.component.scss'],\n  imports: [\n    HistogramWidgetComponent,\n    MatFormFieldModule,\n    MatSelectModule,\n    TranslatePipe,\n    HistogramComponent,\n    PowerbarsComponent,\n    DonutComponent,\n    ResultListComponent,\n    MetricComponent,\n    MetricsTableComponent,\n    AsHistogramContributorPipe,\n    AsSwimlaneContributorPipe,\n    AsTreeContributorPipe,\n    AsListContributorPipe,\n    AsMetricContributorPipe,\n    AsMetricsTableContributorPipe\n]\n})\nexport class WidgetComponent implements OnInit {\n\n  public chartType = ChartType;\n  public contributorType = computed(() => this.getContirbutorType());\n\n  public contributor = computed(() => {\n    const c = this.arlasStartupService.contributorRegistry.get(this.contributorId());\n    if (!c) {\n      throw new Error(`[ARLAS][WIDGET] Given contributorId ${this.contributorId()} does not match any registered contributor.`);\n    }\n    return c;\n  });\n\n  public swimSelected: any;\n  public swimlanes = new Array<any>();\n  public indeterminatedItems = new Set<string>();\n  public highlightItems = new Set<string>();\n  public showSwimlaneDropDown = false;\n  public graphParam: any = {};\n  public metricApproximate = false;\n\n  private donutOverlayRef?: ArlasOverlayRef;\n  private powerbarOverlayRef?: ArlasOverlayRef;\n  private swimlaneOverlayRef?: ArlasOverlayRef;\n\n\n  public componentType = input.required<string>();\n\n  /**\n   * @Input : Angular\n   * @description Identifier of the contributor that serves data to the component\n   */\n  public contributorId = input.required<string>();\n  /**\n   * @Input : Angular\n   * @description Inputs of one of the ARLAS-web-components\n   */\n  public componentParams = input.required<any>();\n\n  /**\n   * @Input : Angular\n   * @description Whether we dispylay the export csv button\n   */\n  @Input() public showExportCsv = false;\n\n\n  /**\n   * @Input : Angular\n   * @description Spinner options\n   */\n  @Input() public spinnerOptions: SpinnerOptions = DEFAULT_SPINNER_OPTIONS;\n\n  /**\n   * @Input : Angular\n   * @description Position of the widget in the group\n   */\n  public position = input.required<number>();\n\n  /**\n   * @Input : Angular\n   * @description Number of widgets in the group to whom this widget belongs\n   */\n  public groupLength = input.required<number>();\n\n  /**\n   * @Input : Angular\n   * @description Whether the widget has to display a detailed version of itself. Currently only used for histograms\n   */\n  @Input() public noDetail = false;\n\n  /**\n   * @Output : Angular\n   * @description Emits an output that comes from the component (ARLAS-web-components). The emitted output has information about\n   * the `origin` which is the contributor id of the component; `event` the name of the event; and eventually `data` which contains\n   * the emitted data from the component.\n   */\n  @Output() public outEvents = new Subject<{ origin: string; event: string; data?: any; }>();\n\n  @ViewChild('histogram', { static: false }) public histogramComponent?: HistogramComponent;\n\n  private _onDestroy$ = new Subject<boolean>();\n\n  public constructor(\n    private readonly arlasStartupService: ArlasStartupService,\n    private readonly arlasCollaborativesearchService: ArlasCollaborativesearchService,\n    private readonly arlasOverlayService: ArlasOverlayService,\n    private readonly translate: TranslateService,\n    private readonly arlasExportCsvService: ArlasExportCsvService\n  ) {\n  }\n\n  public showDonutTooltip(tooltip: ARLASDonutTooltip | null, e: HTMLDivElement) {\n    if (!!this.donutOverlayRef) {\n      this.donutOverlayRef.close();\n    }\n    /** get offset */\n    let itemPerLine = 1;\n    let xOffset = 470;\n    if (this.graphParam.diameter === 170) {\n      itemPerLine = 2;\n      if (this.position() % itemPerLine === 1) {\n        xOffset = 240;\n      }\n    } else if (this.graphParam.diameter === 125) {\n      itemPerLine = 3;\n      if (this.position() % itemPerLine === 1) {\n        xOffset = 320;\n        if (this.position() === this.groupLength() - 1) {\n          xOffset = 245;\n        }\n      } else if (this.position() % itemPerLine === 2) {\n        xOffset = 170;\n      }\n    }\n    if (!!tooltip && tooltip.isShown && tooltip.content) {\n      tooltip.title = this.contributor().getFilterDisplayName();\n      this.donutOverlayRef = this.arlasOverlayService.openDonutTooltip({ data: tooltip }, e, xOffset, 0, false);\n    }\n  }\n\n  public ngOnInit() {\n    if (this.componentType() === 'swimlane') {\n      this.swimlanes = this.contributor().getConfigValue('swimlanes');\n      if (this.swimlanes) {\n        this.showSwimlaneDropDown = this.swimlanes.length > 1;\n        this.swimSelected = this.swimlanes[0];\n      }\n    } else if (this.contributorType() === 'compute') {\n      this.metricApproximate = (this.contributor() as ComputeContributor).metrics.some(c => c.metric === 'cardinality');\n    }\n\n    this.setComponentInput(this.graphParam);\n    const c = this.contributor();\n    /** Init filter operator (include/exclude) of powerbars */\n    if (c instanceof TreeContributor) {\n      this.setFilterOperator(c.getFilterOperator());\n      c.operatorChangedEvent\n        .pipe(takeUntil(this._onDestroy$))\n        .subscribe(op => {\n          this.setFilterOperator(op);\n        });\n    }\n    if (c instanceof MetricsTableContributor) {\n      this.setFilterOperator(c.getFilterOperator());\n      c.operatorChanged$\n        .pipe(takeUntil(this._onDestroy$))\n        .subscribe(op => {\n          this.setFilterOperator(op);\n        });\n    }\n  }\n\n  /**\n   * @description Changes swimlane from the pool of swimlanes defined in SwimlaneContributor configuration.\n   * @param swimlaneName The name of swimlane.\n   */\n  public changeSwimlane(swimlaneName: MatSelectChange<string>) {\n    const swimConf = this.swimlanes.find(f => f.name === swimlaneName.value);\n    (this.contributor() as SwimLaneContributor).aggregations = swimConf.aggregationmodels;\n    if (swimConf.jsonpath) {\n      (this.contributor() as SwimLaneContributor).json_path = swimConf.jsonpath;\n    }\n    const collaborationEvent: CollaborationEvent = {\n      id: 'changeSwimlane',\n      operation: OperationEnum.add,\n      all: true\n    };\n    this.arlasCollaborativesearchService.collaborationBus.next(collaborationEvent);\n  }\n\n  /**\n   * Emits the components output events.\n   * @param source Contributor identifier\n   * @param event Name of the event\n   * @param data Emitted data\n   */\n  public emitEvent(source: string, event: string, data: any) {\n    this.outEvents.next({ origin: source, event: event, data: data });\n  }\n\n  public exportCsv(contributor: Contributor, stayAtFirstLevel: boolean, componentType: string, contributorType?: string) {\n    this.arlasExportCsvService.export(contributor, stayAtFirstLevel, contributorType).subscribe(blob => {\n      const contentType = 'text/csv';\n      const a = document.createElement('a');\n      a.download = contributor.getName().concat('_')\n        .concat(componentType)\n        .concat('_')\n        .concat(new Date().getTime().toString())\n        .concat('.csv');\n      a.href = window.URL.createObjectURL(blob);\n      a.dataset.downloadurl = [contentType, a.download, a.href].join(':');\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    });\n  }\n\n\n  public changePowerbarsOperator(op: 'Neq' | 'Eq'): void {\n    const c = this.contributor() as TreeContributor;\n    if (op === 'Neq') {\n      c.setFilterOperator(Expression.OpEnum.Ne, /** emit */ true);\n    } else {\n      c.setFilterOperator(Expression.OpEnum.Eq, /** emit */ true);\n    }\n    c.selectedNodesListChanged(c.selectedNodesPathsList);\n  }\n\n  public changeMetricsTableOperator(op: 'Neq' | 'Eq'): void {\n    const c = this.contributor() as MetricsTableContributor;\n    if (op === 'Neq') {\n      c.setFilterOperator(Expression.OpEnum.Ne, /** emit */ true);\n    } else {\n      c.setFilterOperator(Expression.OpEnum.Eq, /** emit */ true);\n    }\n    c.onRowSelect(new Set(c.selectedTerms));\n  }\n\n  public showPowerbarTooltip(powerbar: PowerBar, e: HTMLDivElement) {\n    this.hidePowerbarTooltip();\n\n    let xOffset = 470;\n    if (this.groupLength() === 2) {\n      if (this.position() === 1) {\n        xOffset = 239;\n      }\n    } else if (this.groupLength() === 3) {\n      if (this.position() === 1) {\n        xOffset = 319;\n      } else if (this.position() === 2) {\n        xOffset = 169;\n      }\n    }\n\n    // Shortcut case\n    if (this.position === undefined) {\n      xOffset = 270;\n    }\n    if (!this.graphParam.hideTooltip) {\n      this.powerbarOverlayRef = this.arlasOverlayService.openPowerbarTooltip({\n        data: {\n          title: this.contributor().getFilterDisplayName(),\n          key: powerbar.term,\n          value: powerbar.count,\n          progression:  (Math.round((powerbar.progression ?? 0) * 100) / 100),\n          color: powerbar.color\n        }\n      }, e, xOffset, 0, false);\n    }\n  }\n\n  public hidePowerbarTooltip() {\n    if (this.powerbarOverlayRef) {\n      this.powerbarOverlayRef.close();\n    }\n  }\n\n  public showSwimlaneTooltip(tooltip: HistogramTooltip, e: HTMLDivElement) {\n    const { xOffset, yOffset } = computeChartTooltipOffset(\n      this.graphParam.chartWidth, this.groupLength(), this.position(), this.contributor().identifier, false);\n\n    this.hideSwimlaneTooltip();\n    if (tooltip?.shown) {\n      this.swimlaneOverlayRef = this.arlasOverlayService.openSwimlaneTooltip({ data: tooltip }, e, xOffset, yOffset, false);\n    }\n  }\n\n  public hideSwimlaneTooltip() {\n    if (this.swimlaneOverlayRef) {\n      this.swimlaneOverlayRef.close();\n    }\n  }\n\n  private getContirbutorType() {\n    const contributor = this.arlasStartupService.contributorRegistry.get(this.contributorId());\n    if (contributor) {\n      const contributorPkgName: string = contributor.getPackageName();\n      const componenType: string = contributorPkgName.split('.')[contributorPkgName.split('.').length - 1];\n      return componenType;\n    }\n  }\n\n  private setComponentInput(component: any) {\n    if (this.componentParams()) {\n      Object.keys(this.componentParams()).forEach(key => {\n        if (key === 'cellBackgroundStyle') {\n          component[key] = CellBackgroundStyleEnum[this.componentParams()[key] as keyof typeof CellBackgroundStyleEnum];\n        } else if (key === 'chartType') {\n          component[key] = ChartType[this.componentParams()[key] as keyof typeof ChartType];\n        } else if (key === 'dataType') {\n          component[key] = DataType[this.componentParams()[key] as keyof typeof DataType];\n        } else if (key === 'xAxisPosition') {\n          component[key] = Position[this.componentParams()[key] as keyof typeof Position];\n        } else if (key === 'descriptionPosition') {\n          component[key] = Position[this.componentParams()[key] as keyof typeof Position];\n        } else if (key === 'swimlaneMode') {\n          component[key] = SwimlaneMode[this.componentParams()[key] as keyof typeof SwimlaneMode];\n        } else if (key === 'swimlane_representation') {\n          component[key] = SwimlaneRepresentation[this.componentParams()[key] as keyof typeof SwimlaneRepresentation];\n        } else if (key === 'chartTitle' || key === 'valuesDateFormat') {\n          if (this.componentParams()[key]) {\n            component[key] = this.translate.instant(this.componentParams()[key]);\n          } else {\n            component[key] = '';\n          }\n        } else {\n          component[key] = this.componentParams()[key];\n        }\n      });\n    }\n  }\n\n  private setFilterOperator(filterOperatorEnum: Expression.OpEnum) {\n    if (filterOperatorEnum === Expression.OpEnum.Ne) {\n      if (!!this.graphParam.filterOperator) {\n        this.graphParam.filterOperator.value = 'Neq';\n      } else {\n        this.graphParam.filterOperator = {\n          value: 'Neq',\n          display: true\n        };\n      }\n    } else {\n      if (!!this.graphParam.filterOperator) {\n        this.graphParam.filterOperator.value = 'Eq';\n      } else {\n        this.graphParam.filterOperator = {\n          value: 'Eq',\n          display: true\n        };\n      }\n    }\n  }\n}\n","<div #arlas_tooltip_anchor></div>\n\n@if (componentType() === 'histogram') {\n  <div class=\"histogram-container\">\n    <arlas-tool-histogram-widget [contributor]=\"contributor() | asHistogramContributor\" [componentInputs]=\"graphParam\" [showExportCsv]=\"showExportCsv\"\n      [spinnerOptions]=\"spinnerOptions\" [position]=\"position()\" [groupLength]=\"groupLength()\" [noDetail]=\"noDetail\"\n      (exportCsvEvent)=\"exportCsv($event.contributor, $event.firstLevel, $event.type, 'histogram')\"></arlas-tool-histogram-widget>\n  </div>\n} @else if (componentType() === 'swimlane') {\n  <div (mouseleave)=\"hideSwimlaneTooltip()\">\n    @if (showSwimlaneDropDown) {\n      <div class=\"dropdownSwimlane\">\n        <mat-form-field>\n          <mat-select panelClass=\"panelSwimlane\" [value]=\"swimSelected.name\" (selectionChange)=\"changeSwimlane($event)\">\n            @for (s of swimlanes; track s) {\n              <mat-option value=\"{{s?.name}}\">{{s.name | translate}}</mat-option>\n            }\n          </mat-select>\n        </mat-form-field>\n      </div>\n    }\n    @let c = contributor() | asSwimlaneContributor;\n    <arlas-histogram [chartType]=\"chartType.swimlane\" [selectedSwimlanes]=\"c.selectedSwimlanes\" [data]=\"$any(c.swimData)\"\n      (selectedSwimlanesEvent)=\"c.valueChanged($event)\" [id]=\"graphParam?.id\" [dataType]=\"graphParam?.dataType\" [dataUnit]=\"graphParam?.dataUnit\"\n      [valuesDateFormat]=\"graphParam?.valuesDateFormat\" [isHistogramSelectable]=\"graphParam?.isHistogramSelectable\" [multiselectable]=\"graphParam?.multiselectable\"\n      [topOffsetRemoveInterval]=\"graphParam?.topOffsetRemoveInterval\" [leftOffsetRemoveInterval]=\"graphParam?.leftOffsetRemoveInterval\"\n      [brushHandlesHeightWeight]=\"graphParam?.brushHandlesHeightWeight\" [chartTitle]=\"graphParam?.chartTitle\" [chartWidth]=\"graphParam?.chartWidth\"\n      [chartHeight]=\"graphParam?.chartHeight\" [customizedCssClass]=\"graphParam?.customizedCssClass\" [xAxisPosition]=\"graphParam?.xAxisPosition\"\n      [descriptionPosition]=\"graphParam?.descriptionPosition\" [xTicks]=\"graphParam?.xTicks\" [yTicks]=\"graphParam?.yTicks\" [xLabels]=\"graphParam?.xLabels\"\n      [yLabels]=\"graphParam?.yLabels\" [showXTicks]=\"graphParam?.showXTicks\" [showYTicks]=\"graphParam?.showYTicks\" [showXLabels]=\"graphParam?.showXLabels\"\n      [showYLabels]=\"graphParam?.showYLabels\" [ticksDateFormat]=\"graphParam?.ticksDateFormat\" [isSmoothedCurve]=\"graphParam?.isSmoothedCurve\"\n      [barWeight]=\"graphParam?.barWeight\" [paletteColors]=\"graphParam?.paletteColors\" [swimlaneMode]=\"graphParam?.swimlaneMode\"\n      [swimLaneLabelsWidth]=\"graphParam?.swimLaneLabelsWidth\" [swimlaneBorderRadius]=\"graphParam?.swimlaneBorderRadius\" [swimlaneHeight]=\"graphParam?.swimlaneHeight\"\n      [displayOnlyIntervalsWithData]=\"graphParam?.displayOnlyIntervalsWithData\"\n      [swimlaneRepresentation]=\"graphParam?.swimlane_representation\" [swimlaneOptions]=\"graphParam?.swimlane_options\"\n      [useUtc]=\"c.useUtc\"  (tooltipEvent)=\"showSwimlaneTooltip($event, arlas_tooltip_anchor)\"></arlas-histogram>\n  </div>\n} @else if (componentType() === 'powerbars') {\n  @let c = contributor() | asTreeContributor;\n  <div class=\"powerbars-widget\">\n    <arlas-powerbars [customizedCssClass]=\"graphParam?.customizedCssClass\" [powerbarTitle]=\"graphParam?.powerbarTitle\" [displayFilterField]=\"graphParam?.displayFilter\"\n      [inputData]=\"c.treeData\" [unit]=\"graphParam?.unit\" [missingLeafEvent]=\"c.emitMissingLeaf\"\n      [filterOperator]=\"graphParam?.filterOperator\" [useColorService]=\"graphParam?.useColorService\" [useColorFromData]=\"graphParam?.useColorFromData\" [keysToColors]=\"graphParam?.keysToColors\"\n      [colorsSaturationWeight]=\"graphParam?.colorsSaturationWeight\" (selectedPowerBarEvent)=\"c.selectedNodesListChanged($event)\" [scrollable]=\"graphParam?.scrollable\"\n      [selectedPaths]=\"c.selectedNodesPathsList\" (searchedTerm)=\"c.updateTreeDataSearch($event)\"\n      [groupSelections]=\"graphParam?.groupSelections\"  [selectWithCheckbox]=\"graphParam?.selectWithCheckbox\"\n      (filterOperatorEvent)=\"changePowerbarsOperator($event)\" (overPowerBarEvent)=\"showPowerbarTooltip($event, arlas_tooltip_anchor)\" (outPowerBarEvent)=\"hidePowerbarTooltip()\"\n      [chartWidth]=\"graphParam?.chartWidth\" [displayExportButton]=\"showExportCsv\" (exportEvent)=\"exportCsv(contributor(), true, componentType())\">\n    </arlas-powerbars>\n  </div>\n} @else if (componentType() === 'donut') {\n  @let c = contributor() | asTreeContributor;\n  <div class=\"donut-container\">\n    <div class=\"donut\">{{contributor().getFilterDisplayName() | translate}}</div>\n    <arlas-donut [id]=\"graphParam?.id\" [donutData]=\"c.treeData\" [opacity]=\"graphParam.opacity\" [multiselectable]=\"graphParam?.multiselectable\"\n      [selectedArcsList]=\"c.selectedNodesPathsList\" [unit]=\"graphParam?.unit\" [diameter]=\"graphParam?.diameter\" (hoveredNodeTooltipEvent)=\"showDonutTooltip($event, arlas_tooltip_anchor)\"\n      [containerWidth]=\"graphParam?.containerWidth\" [keysToColors]=\"graphParam?.keysToColors\" [colorsSaturationWeight]=\"graphParam?.colorsSaturationWeight\"\n      (selectedNodesEvent)=\"c.selectedNodesListChanged($event)\" [customizedCssClass]=\"graphParam?.customizedCssClass\"\n      [displayExportButton]=\"showExportCsv\" (exportEvent)=\"exportCsv(contributor(), false, componentType())\">\n    </arlas-donut>\n  </div>\n} @else if (componentType() === 'resultlist') {\n  @let c = contributor() | asListContributor;\n  <div>\n    <arlas-result-list style=\"height:100%\" [rowItemList]=\"c.data\" [detailedDataRetriever]=\"c.detailedDataRetriever\"\n      [fieldsConfiguration]=\"c.fieldsConfiguration\" [tableFields]=\"c.fieldsList\" [cardFields]=\"c.cardViewProperties\" [filtersMap]=\"c.filtersMap\"\n      [dropDownMapValues]=\"c.dropDownMapValues\" (sortColumnEvent)=\"emitEvent(contributorId(), 'sortColumnEvent', $event)\" [fetchState]=\"c.fetchState\"\n      (paginationEvent)=\"emitEvent(contributorId(), 'paginationEvent', $event)\" (setFiltersEvent)=\"c.setFilters($event)\"\n      [tableWidth]=\"graphParam.tableWidth\" [globalActionsList]=\"graphParam.globalActionsList\" [nLastLines]=\"graphParam.nLastLines\"\n      [detailedGridHeight]=\"graphParam.detailedGridHeight\" [nbGridColumns]=\"graphParam.nbGridColumns\"\n      [highlightItems]=\"c.highlightItems\" [hasCardMode]=\"!!graphParam?.hasCardView\" [hasGridMode]=\"graphParam?.hasGridView\" [defautMode]=\"graphParam.defautMode\" [displayFilters]=\"graphParam.displayFilters\"\n      [isBodyHidden]=\"graphParam.isBodyHidden\" [isGeoSortEnabled]=\"graphParam?.isGeoSortActived\"\n      [useColorService]=\"graphParam?.useColorService\" [cellBackgroundStyle]=\"graphParam?.cellBackgroundStyle\" [keysToColors]=\"graphParam?.keysToColors\"\n      [colorsSaturationWeight]=\"graphParam?.colorsSaturationWeight\" (geoSortEvent)=\"emitEvent(contributorId(), 'geoSortEvent', $event)\"\n      (geoAutoSortEvent)=\"emitEvent(contributorId(), 'geoAutoSortEvent', $event)\" (selectedItemsEvent)=\"emitEvent(contributorId(), 'selectedItemsEvent', $event)\"\n      (consultedItemEvent)=\"emitEvent(contributorId(), 'consultedItemEvent', $event)\" (actionOnItemEvent)=\"emitEvent(contributorId(), 'actionOnItemEvent', $event)\"\n      (globalActionEvent)=\"emitEvent(contributorId(), 'globalActionEvent', $event)\" [options]=\"graphParam?.options\">\n    </arlas-result-list>\n  </div>\n} @else if (componentType() === 'metric') {\n  @let c = contributor() | asMetricContributor;\n  <div>\n    <arlas-metric [beforeValue]=\"graphParam?.beforeValue\" [shortValue]=\"graphParam?.shortValue\"\n      [value]=\"c.metricValue\" [afterValue]=\"graphParam?.afterValue\" [approximateValue]=\"metricApproximate\"\n      [customizedCssClass]=\"graphParam?.customizedCssClass\" [valuePrecision]=\"graphParam?.valuePrecision\"\n      [chartWidth]=\"graphParam?.chartWidth\" >\n    </arlas-metric>\n  </div>\n} @else if (componentType() === 'metricstable') {\n  @let c = contributor() | asMetricsTableContributor;\n  <div>\n    <arlas-metrics-table\n      [metricsTable]=\"$any(c.data)\"\n      [selectedTerms]=\"c.selectedTerms\"\n      [filterOperator]=\"graphParam?.filterOperator\"\n      [useColorService]=\"graphParam?.useColorService\"\n      [applyColorTo]=\"graphParam?.applyColorTo\"\n      [showRowField]=\"graphParam?.showRowField\"\n      [selectWithCheckbox]=\"graphParam?.selectWithCheckbox\"\n      [headerDisplayMode]=\"graphParam?.headerDisplayMode\"\n      [normaliseBy]=\"graphParam?.normaliseBy\"\n      (onSelect)=\"c.onRowSelect($event)\"\n      (filterOperatorEvent)=\"changeMetricsTableOperator($event)\"\n    ></arlas-metrics-table>\n  </div>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';\nimport { NgClass } from '@angular/common';\nimport {\n  AfterViewInit, Component, DestroyRef, EventEmitter, inject,\n  Input, OnChanges, OnInit, Output, SimpleChanges\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { GetContributorPipe } from '../../../pipes/get-contributor.pipe';\nimport { AnalyticsService } from '../../../services/analytics/analytics.service';\nimport { ArlasCollaborativesearchService } from '../../../services/collaborative-search/arlas.collaborative-search.service';\nimport { SpinnerOptions } from '../../../tools/utils';\nimport { ProgressSpinnerComponent } from '../../progress-spinner/progress-spinner.component';\nimport { WidgetComponent } from '../../widget/widget.component';\nimport { AnalyticGroupConfiguration } from '../analytics.utils';\n\n/**\n * This component organizes the `Widgets` in a board.\n * A Widget is declared within a \"group\" in the configuration. A group contains one or more Widgets\n */\n@Component({\n  selector: 'arlas-analytics-board',\n  templateUrl: './analytics-board.component.html',\n  styleUrls: ['./analytics-board.component.scss'],\n  imports: [\n    MatExpansionModule,\n    MatIconModule,\n    CdkDropList,\n    TranslatePipe,\n    GetContributorPipe,\n    MatTooltipModule,\n    NgClass,\n    WidgetComponent,\n    ProgressSpinnerComponent,\n    MatButtonModule\n  ]\n})\nexport class AnalyticsBoardComponent implements OnInit, AfterViewInit, OnChanges {\n\n  /**\n   * @Input : Angular\n   * @description Display mode of the analytics tab. Can be 'normal' or 'compact'.\n   */\n  @Input() public mode: 'normal' | 'compact' = 'normal';\n\n  /**\n   * @Input : Angular\n   * @description Id of the element to scroll to inside of the analytics board.\n   */\n  @Input() public target: string | undefined;\n\n  /**\n   * @Input : Angular\n   * @description Whether or not the spinner is displayed when a component is loading data\n   */\n  @Input() public showSpinner = false;\n\n  @Input() public colorSpinner = 'primary';\n  @Input() public diameterSpinner = 100;\n  @Input() public strokeWidthSpinner = 5;\n\n  /**\n   * @Input : Angular\n   * @description Whether or not the indicators are displayed when a filter is active on a group or tab\n   */\n  @Input() public showIndicators = false;\n\n  /**\n   * @Output : Angular\n   * @description Emits an event coming from one of the Widgets.\n   * The emitted output has information about\n   * the `origin` which is the contributor id of the Widget; `event` the name of the event; and eventually `data` which contains\n   * the emitted data from the component.\n   */\n  @Output() public boardOutputs: EventEmitter<{ origin: string; event: string; data?: any; }> = new EventEmitter();\n\n  /**\n   * @Output : Angular\n   * @description Emits an event when the display mode of a group is changed. The value transmitted is the group id\n   */\n  @Output() public modeChange: EventEmitter<string> = new EventEmitter();\n\n  public spinnerOptions: SpinnerOptions = {\n    color: 'primary',\n    diameter: 100,\n    strokeWidth: 5\n  };\n\n  /**\n   * @description List of groups. Each group contains one or more widgets.\n   */\n  public groups: Array<AnalyticGroupConfiguration>;\n\n  public expandedHeaderHeight = 48;\n  public collapsedHeaderHeight = 32;\n\n  private readonly destroyRef = inject(DestroyRef);\n\n  public constructor(\n    protected readonly collaborativeService: ArlasCollaborativesearchService,\n    protected readonly analyticsService: AnalyticsService,\n  ) {\n    // When the tab is changed, get the groups to display\n    this.groups = this.analyticsService.getActiveGroups();\n\n    this.analyticsService.tabChange\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe(() => {\n        this.groups = this.analyticsService.getActiveGroups();\n      });\n  }\n\n  public ngOnInit() {\n    if (this.colorSpinner) {\n      this.spinnerOptions.color = this.colorSpinner;\n    }\n\n    if (this.diameterSpinner !== undefined && this.diameterSpinner !== null) {\n      this.spinnerOptions.diameter = this.diameterSpinner;\n    }\n\n    if (this.strokeWidthSpinner !== undefined && this.strokeWidthSpinner !== null) {\n      this.spinnerOptions.strokeWidth = 5;\n    }\n  }\n\n  public ngOnChanges(changes: SimpleChanges): void {\n    if (changes.target && changes.groups === undefined) {\n      this.scrollToAnalyticsComponent(changes.target.currentValue);\n    }\n  }\n\n  public ngAfterViewInit() {\n    this.scrollToAnalyticsComponent(this.target);\n  }\n\n  public scrollToAnalyticsComponent(target: string | undefined) {\n    if (this.mode === 'normal' && target !== undefined) {\n      const element = (<HTMLElement>document.getElementById(target));\n      element.scrollIntoView(true);\n    }\n  }\n\n  /**\n   * Emits the widgets output events.\n   * @param source Contributor identifier\n   * @param event Name of the event\n   * @param data Emitted data\n   */\n  public listenOutput(event: { origin: string; event: string; data?: any; }) {\n    this.boardOutputs.next(event);\n  }\n\n  public drop(event: CdkDragDrop<string[]>) {\n    this.analyticsService.dropGroup(event);\n  }\n\n  public changeMode(event: string) {\n    this.modeChange.next(event);\n  }\n\n  public removeFilter(groupId: string, event: any) {\n    this.analyticsService.removeFilter(groupId);\n    event.stopPropagation();\n  }\n\n  public openPanel(group: AnalyticGroupConfiguration) {\n    this.analyticsService.openPanel(group);\n  }\n\n  public closePanel(group: AnalyticGroupConfiguration) {\n    this.analyticsService.closePanel(group);\n  }\n}\n","<div class=\"analytics-board-content\" cdkDropList cdkScrollable\n  [cdkDropListDisabled]=\"!analyticsService.isActiveDragDrop\" [class.analytics-board-compact]=\"mode === 'compact'\"\n  (cdkDropListDropped)=\"drop($event)\">\n  @for (group of groups; track $index) {\n    @let display = analyticsService.groupsDisplayStatusMap.get(group.groupId);\n    @if (display && mode === 'normal') {\n      <mat-expansion-panel cdkDrag id=\"analytics-panel-{{group?.groupId}}\"\n        [expanded]=\"group?.collapsed !== true\" class=\"analytics-board-panel\" (opened)=\"openPanel(group)\"\n        (closed)=\"closePanel(group)\">\n        @if (group?.title !== undefined) {\n          <mat-expansion-panel-header cdkDragHandle\n            [expandedHeight]=\"expandedHeaderHeight + 'px'\" [collapsedHeight]=\"collapsedHeaderHeight + 'px'\" color=\"primary\">\n            <mat-panel-title class=\"analytics-board-panel-title\">\n              @if (showIndicators && analyticsService.activeFilterGroup.get(group.groupId)) {\n                <button mat-icon-button class=\"active-filter-group\" (click)=\"removeFilter(group.groupId, $event)\"\n                    [matTooltip]=\"'Click to remove filter' | translate\" matTooltipPosition=\"below\">\n                  <mat-icon class=\"active-filter-group-close\">clear</mat-icon>\n                </button>\n              }\n              @if (group?.icon !== undefined) {\n                <mat-icon class=\"analytics-board-panel-icon\">{{group.icon}}</mat-icon>\n              }\n              {{group.title | translate}}\n            </mat-panel-title>\n          </mat-expansion-panel-header>\n        }\n        <div class=\"analytics-board-group analytics-group-{{group.components.length}}\">\n          @for (component of group.components; track component; let i = $index) {\n            <div class=\"analytics-board-card\"\n                [ngClass]=\"$any(component)?.customizedCssClass\" [class.centered]=\"component?.componentType === 'donut'\">\n              <arlas-tool-widget\n                id=\"{{component.componentType + '-' + component.contributorId + '-' + group.groupId + '-' + i}}\"\n                [componentType]=\"component.componentType\" [contributorId]=\"component.contributorId\"\n                [showExportCsv]=\"!!component?.showExportCsv\" [componentParams]=\"component?.input\"\n                [spinnerOptions]=\"spinnerOptions\" [position]=\"i\" [groupLength]=\"group.components.length\"\n                (outEvents)=\"listenOutput($event)\">\n              </arlas-tool-widget>\n              @if (showSpinner) {\n                <arlas-tool-progress-spinner [strokeWidth]=\"strokeWidthSpinner\" [color]=\"colorSpinner\"\n                  [diameter]=\"diameterSpinner\" [hidden]=\"!(component?.contributorId | getContributor)?.isDataUpdating\"></arlas-tool-progress-spinner>\n              }\n            </div>\n          }\n        </div>\n      </mat-expansion-panel>\n    }\n\n    @if (display && mode === 'compact') {\n      <button mat-icon-button [id]=\"'compact-' + group.groupId\"\n          #compactTooltip=\"matTooltip\" (mouseover)=\"compactTooltip.show()\" [matTooltip]=\"group.title | translate\"\n          matTooltipPosition=\"right\" (click)=\"changeMode(group.groupId)\" class=\"analytics-compact-card\">\n        <mat-icon>{{group.icon}}</mat-icon>\n        @if (analyticsService.activeFilterGroup.get(group.groupId)) {\n          <button mat-icon-button class=\"active-filter\" (click)=\"removeFilter(group.groupId, $event); compactTooltip.hide()\">\n            <mat-icon class=\"active-filter-close\" [matTooltip]=\"'Click to remove filter' | translate\"\n              matTooltipPosition=\"below\" (mouseenter)=\"compactTooltip.hide()\">clear</mat-icon>\n        </button>\n        }\n      </button>\n    }\n  }\n</div>","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, Input, OnInit } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { AnalyticsService } from '../../../services/analytics/analytics.service';\nimport { getParamValue } from '../../../tools/utils';\n\n@Component({\n  selector: 'arlas-analytics-menu',\n  templateUrl: './analytics-menu.component.html',\n  styleUrls: ['./analytics-menu.component.scss'],\n  imports: [\n    MatListModule,\n    MatIconModule,\n    TranslatePipe,\n    MatTooltipModule,\n    MatButtonModule\n  ]\n})\nexport class AnalyticsMenuComponent implements OnInit {\n\n  /**\n   * @Input : Angular\n   * @description If no tab is selected based on the url, indicates which tab index to select by default.\n   * If none is supplied, then no tab is displayed by default\n   */\n  @Input() public tabIndexByDefault?: number;\n\n  /**\n   * @Input : Angular\n   * @description Whether to show the indicator of filters applied on this tab.\n   */\n  @Input() public showIndicators = false;\n\n  public constructor(\n    public readonly analyticsService: AnalyticsService\n  ) { }\n\n  public ngOnInit(): void {\n    // Get active tab from url\n    const tab = getParamValue('at');\n    if (tab) {\n      const tabIndex = this.analyticsService.tabs.map(t => t.name).indexOf(decodeURI(tab));\n      if (tabIndex >= 0) {\n        this.selectTab(tabIndex);\n      }\n    }\n\n    // Load tab by default if one was given, and no tab is currently selected\n    if (this.analyticsService.activeTab === undefined && this.tabIndexByDefault !== undefined\n        && this.tabIndexByDefault < this.analyticsService.tabs.length) {\n      this.selectTab(this.tabIndexByDefault);\n    }\n  }\n\n  /**\n   * Method called when clicking on a tab to select or unselect it. If already selected, unselects it.\n   * @param index Index of the tab selected in the list of tabs\n   */\n  public selectTab(index: number) {\n    this.analyticsService.selectTab(index === this.analyticsService.activeTab ? undefined : index);\n  }\n\n  /**\n   * Remove all the filters linked to the contributors of the clicked tab\n   * @param tabId The name of the tab clicked\n   * @param event The click event fired when clicked\n   */\n  public removeTabFilter(tabId: string, event: any) {\n    // find out the type of the click event\n    this.analyticsService.removeTabFilter(tabId);\n    event.stopPropagation();\n  }\n}\n","<mat-action-list class=\"analytics-menu\" [class.analytics-menu--unselected]=\"!analyticsService.activeTab\">\n  @for (tab of analyticsService.tabs; track tab; let tabIdx = $index) {\n    <button mat-list-item (click)=\"selectTab(tabIdx)\">\n      @if (tab.icon) {\n        <mat-icon [matTooltip]=\"tab.name | translate\" matTooltipPosition=\"right\"\n          class=\"tab-icon\" [class.tab--selected]=\"tabIdx === analyticsService.activeTab\">\n          {{ tab.icon }}\n        </mat-icon>\n      } @else {\n        <div [matTooltip]=\"tab.name | translate\"  matTooltipPosition=\"right\"\n          [class.tab--selected]=\"tabIdx === analyticsService.activeTab\">\n          {{ tab.name[0] }}\n        </div>\n      }\n\n      @if (showIndicators && analyticsService.activeFilterTab.get(tab.name)) {\n        <button mat-icon-button class=\"active-filter-tab\" (click)=\"removeTabFilter(tab.name, $event);\">\n          <mat-icon class=\"active-filter-tab-close\"\n            [matTooltip]=\"'Click to remove all filters of this tab' | translate\"\n            matTooltipPosition=\"right\">clear</mat-icon>\n        </button>\n      }\n    </button>\n  }\n</mat-action-list>","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { BehaviorSubject, map, mergeMap, Observable, of } from 'rxjs';\nimport { ArlasStorageObject, sortOnDate } from './utils';\n\nexport class ArlasLocalDatabase<T extends ArlasStorageObject> {\n  /** Stream that emits whenever the data has been modified. */\n  public dataChange: BehaviorSubject<T[]> = new BehaviorSubject<T[]>([]);\n  public get data(): T[] {\n    return this.dataChange.value;\n  }\n  public storageObjectMap: Map<string, T> = new Map<string, T>();\n\n  public storageKey: string;\n\n  public constructor(storageKey: string = 'storage_object', additionalObject?: any) {\n    this.storageKey = storageKey;\n\n    const storedValue = localStorage.getItem(this.storageKey);\n    if (storedValue !== null) {\n      const copiedData = new Array<T>();\n      Array.from<T>(JSON.parse(storedValue)).forEach((obj: T) => {\n        const newObj: T = this.init(obj, additionalObject);\n        copiedData.push(newObj);\n        this.storageObjectMap.set(obj.id, newObj);\n      });\n      const sortedData = sortOnDate(copiedData);\n      this.dataChange.next((sortedData as T[]));\n    }\n  }\n\n  /**\n   * Method call for each element at init\n   * @param obj Object to init of type <T>\n   * @param additionnalObj Addtionnal object\n   */\n  public init(obj: T, additionnalObj?: any): T {\n    return obj;\n  }\n\n  public add(storageObject: T): Observable<void> {\n    return of(true).pipe(map(v => {\n      const copiedData = this.data.slice();\n      copiedData.push(storageObject);\n      this.storageObjectMap.set(storageObject.id, storageObject);\n      const sortedData = sortOnDate(copiedData);\n      localStorage.setItem(this.storageKey, JSON.stringify(sortedData));\n      this.dataChange.next((sortedData as T[]));\n    }));\n  }\n\n  public remove(id: string): Observable<void> {\n    return of(true).pipe(map(v => {\n      const copiedData = this.data.slice();\n      const newData = new Array<T>();\n      copiedData.forEach((u: T) => {\n        if (u.id !== id) {\n          newData.push(u);\n        }\n      });\n      this.storageObjectMap.delete(id);\n      localStorage.setItem(this.storageKey, JSON.stringify(sortOnDate(newData)));\n      this.dataChange.next(newData);\n    }));\n  }\n\n\n  public update(id: string, storageObject: T): Observable<void> {\n    return of(true).pipe(mergeMap(v => this.remove(id).pipe(mergeMap(() => this.add(storageObject)))));\n  };\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Aoi } from './model';\nimport { Guid } from '../../tools/utils';\nimport { ArlasLocalDatabase } from '../../tools/arlasLocalDatabase';\n\nexport class AoiDatabase extends ArlasLocalDatabase<Aoi> {\n\n  public constructor() {\n    super('aoi');\n  }\n\n  public init(aoi: Aoi): Aoi {\n    const initAoi = {\n      id: aoi.id,\n      date: new Date(aoi.date),\n      name: aoi.name,\n      geometry: aoi.geometry,\n      private: aoi.private\n    };\n    return initAoi;\n  }\n\n  public createAoi(name: string, geometry: any, visibility: boolean = false, date?: Date, id?: string): Aoi {\n    let uid = '';\n    let aoiDate: Date;\n\n    if (id) {\n      uid = id;\n    } else {\n      const guid = new Guid();\n      uid = guid.newGuid();\n    }\n    if (date) {\n      aoiDate = new Date(date);\n    } else {\n      aoiDate = new Date();\n    }\n    const aoi: Aoi = {\n      id: uid,\n      date: aoiDate,\n      name: name,\n      geometry: geometry,\n      private: visibility\n    };\n    return aoi;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {ArlasStartupService} from '../startup/startup.service';\nimport {AoiDatabase} from './aoiDatabase';\nimport {Aoi} from './model';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class ArlasAoiService {\n  public dataBase?: AoiDatabase;\n  public aoiMap: Map<string, Aoi> = new Map<string, Aoi>();\n\n  public constructor(private arlasStartupService: ArlasStartupService) {\n    if (this.arlasStartupService.shouldRunApp && !this.arlasStartupService.emptyMode) {\n      this.dataBase = new AoiDatabase();\n      this.aoiMap = this.dataBase.storageObjectMap;\n    }\n  }\n\n  public addAoi(name: string, geometry: any) {\n    if (this.dataBase) {\n      const newAoi = this.dataBase.createAoi(name, geometry);\n      this.dataBase.add(newAoi);\n      this.aoiMap = this.dataBase.storageObjectMap;\n    }\n  }\n\n  public removeAoi(id: string) {\n    if (this.dataBase) {\n      this.dataBase.remove(id);\n      this.aoiMap = this.dataBase.storageObjectMap;\n    }\n  }\n\n  public getAoiById(id: string) {\n    return Array.from(this.aoiMap.values()).find(aoi => aoi.id === id);\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { DataSource } from '@angular/cdk/collections';\nimport { BehaviorSubject, Observable, merge } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { ArlasLocalDatabase } from './arlasLocalDatabase';\nimport { ArlasStorageObject, sortOnDate } from './utils';\n\nexport class ArlasDataSource<T extends ArlasStorageObject> extends DataSource<T> {\n  private readonly _filterChange = new BehaviorSubject('');\n\n  public get filter(): string {\n    return this._filterChange.value;\n  }\n  public set filter(filter: string) {\n    this._filterChange.next(filter);\n  }\n  public constructor(public arlasLocalDatabase: ArlasLocalDatabase<T>) {\n    super();\n  }\n  /** Connect function called by the table to retrieve one stream containing the data to render. */\n  public connect(): Observable<T[]> {\n    const displayDataChanges = [\n      this.arlasLocalDatabase.dataChange,\n      this._filterChange\n    ];\n    return merge(...displayDataChanges).pipe(map(() => {\n      localStorage.setItem(this.arlasLocalDatabase.storageKey, JSON.stringify(this.arlasLocalDatabase.data));\n      return this.getSortedData();\n\n    }));\n  }\n\n  public disconnect() { }\n\n  public getSortedData(): T[] {\n    const data = this.arlasLocalDatabase.data.slice();\n    // force date asc sort\n    const sortedData = sortOnDate(data);\n    return sortedData.slice().filter(item => {\n      if (item.name !== undefined) {\n        const searchStr = (item.name).toLowerCase();\n        return searchStr.includes(this.filter.toLowerCase());\n      }\n    });\n\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { DatePipe } from '@angular/common';\nimport { Component, Output } from '@angular/core';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTableModule } from '@angular/material/table';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Subject } from 'rxjs';\nimport { ArlasAoiService } from '../../services/aoi/aoi.service';\nimport { Aoi } from '../../services/aoi/model';\nimport { ArlasDataSource } from '../../tools/arlasDataSource';\n\n@Component({\n  selector: 'arlas-aoi',\n  templateUrl: './aoi.component.html',\n  styleUrls: ['./aoi.component.scss'],\n  imports: [\n    MatTableModule,\n    TranslatePipe,\n    DatePipe,\n    MatIconModule,\n    MatCheckboxModule\n  ]\n})\nexport class AoiComponent {\n\n  public aois?: ArlasDataSource<Aoi>;\n  public columnsToDisplay = ['checked', 'name', 'date', 'actions'];\n  public itemsCheck: Array<string> = new Array<string>();\n\n  @Output() public actions: Subject<{ action: string; id: string; geometry?: any; }> = new Subject<any>();\n\n  public constructor(\n    private readonly aoiService: ArlasAoiService\n  ) {\n    if (this.aoiService.dataBase) {\n      this.aois = new ArlasDataSource(this.aoiService.dataBase);\n    }\n  }\n\n  public selectAoi(event: { checked: boolean; }, id: string) {\n    if (event.checked) {\n      this.itemsCheck.push(id);\n    } else {\n      const index = this.itemsCheck.indexOf(id, 0);\n      if (index > -1) {\n        this.itemsCheck.splice(index, 1);\n      }\n    }\n  }\n\n  public viewAoi(id: string) {\n    const aoi = this.aoiService.getAoiById(id);\n    this.actions.next({action: 'view', id: id, geometry: aoi?.geometry});\n\n  }\n\n  public removeAoi(id: string) {\n    this.aoiService.removeAoi(id);\n    this.selectAoi({checked: false}, id);\n    this.actions.next({action: 'remove', id: id});\n  }\n}\n","@if (aois) {\n<mat-table [dataSource]=\"aois\" class=\"aoi-table-items\">\n  <ng-container matColumnDef=\"checked\">\n    <mat-header-cell *matHeaderCellDef> # </mat-header-cell>\n    <mat-cell *matCellDef=\"let aoi\">\n      <mat-checkbox class=\"aoi-check\" (change)=\"selectAoi($event, aoi.id)\"></mat-checkbox>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"actions\">\n    <mat-header-cell *matHeaderCellDef> {{ 'Actions' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let aoi\">\n      <mat-icon class=\"aoi-icons-action aoi-icons-action-view\" title=\"{{ 'View' | translate }}\" (click)=\"viewAoi(aoi.id)\">\n        remove_red_eye\n      </mat-icon>\n      <mat-icon class=\"aoi-icons-action aoi-icons-action-delete\" title=\"{{ 'Remove' | translate }}\" (click)=\"removeAoi(aoi.id)\">\n        delete\n      </mat-icon>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"date\">\n    <mat-header-cell *matHeaderCellDef> {{ 'Date' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let aoi\"> {{aoi.date | date: 'dd/MM/yyyy HH:mm:ss'}} </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"name\">\n    <mat-header-cell *matHeaderCellDef> {{ 'Name' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let aoi\">{{aoi.name}}</mat-cell>\n  </ng-container>\n\n  <mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></mat-header-row>\n  <mat-row *matRowDef=\"let myRowData; columns: columnsToDisplay\"></mat-row>\n</mat-table>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Observable } from 'rxjs';\nimport { ArlasLocalDatabase } from '../../tools/arlasLocalDatabase';\nimport { Guid } from '../../tools/utils';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasStartupService } from '../startup/startup.service';\nimport { ArlasBookmarkService } from './bookmark.service';\nimport { BookMark, BookMarkType } from './model';\n\nexport class BookmarkLocalDatabase extends ArlasLocalDatabase<BookMark> {\n\n  public constructor(\n    public bookmarkService: ArlasBookmarkService,\n    public arlasCollaborativesearchService: ArlasCollaborativesearchService,\n    public startupService: ArlasStartupService) {\n    super('bookmark', bookmarkService);\n  }\n\n  public init(bookmark: BookMark, service: ArlasBookmarkService): BookMark {\n    const initBookmark = {\n      id: bookmark.id,\n      date: new Date(bookmark.date),\n      name: bookmark.name,\n      prettyFilter: bookmark.prettyFilter,\n      url: bookmark.url,\n      type: bookmark.type,\n      color: bookmark.color,\n      count: new Observable<0>(),\n      views: bookmark.views,\n      collections: bookmark.collections\n    };\n    service.setBookMarkCount(initBookmark);\n    return initBookmark;\n  }\n\n  public createBookmark(name: string, prettyFilter: string, url: string, collections: Set<string>,\n    type: BookMarkType, color: string, id?: string, date?: Date, views?: number): BookMark {\n    let uid = '';\n    let bookmarkDate: Date;\n    let bookmarkViews: number;\n    if (id) {\n      uid = id;\n    } else {\n      const guid = new Guid();\n      uid = guid.newGuid();\n    }\n    if (date) {\n      bookmarkDate = new Date(date);\n    } else {\n      bookmarkDate = new Date();\n    }\n    if (views) {\n      bookmarkViews = views;\n    } else {\n      bookmarkViews = 0;\n    }\n    const bookMark: BookMark = {\n      id: uid,\n      date: bookmarkDate,\n      name: name,\n      prettyFilter: prettyFilter,\n      url: url,\n      type: type,\n      color: color,\n      count: new Observable<0>(),\n      views: bookmarkViews,\n      collections: Array.from(collections).sort().join(',')\n    };\n    this.bookmarkService.setBookMarkCount(bookMark);\n    return bookMark;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { DataResource, DataWithLinks } from 'arlas-persistence-api';\nimport { BehaviorSubject, catchError, map, mergeMap, Observable, of } from 'rxjs';\nimport { PersistenceService } from '../services/persistence/persistence.service';\nimport { ArlasStorageObject } from './utils';\n\nexport class ArlasPersistenceDatabase<T extends ArlasStorageObject> {\n  /** Stream that emits whenever the data has been modified. */\n  public dataChange: BehaviorSubject<{ total: number; items: T[]; }>\n    = new BehaviorSubject<{ total: number; items: T[]; }>({ total: 0, items: [] });\n  public get data(): { total: number; items: T[]; } {\n    return this.dataChange.value;\n  }\n  public storageObjectMap: Map<string, T> = new Map<string, T>();\n\n\n  public storageKey: string;\n  public persistenceService: PersistenceService;\n  public additionalObject: any;\n\n  private page: { size: number; number: number; } = { size: 10, number: 1 };\n\n  public constructor(storageKy: string = 'storage_object', persistenceService: PersistenceService, additionalObject?: any) {\n    this.storageKey = storageKy;\n    this.persistenceService = persistenceService;\n    this.additionalObject = additionalObject;\n  }\n\n  /**\n   * Method call for each element at init\n   * @param obj Object to init of type <T>\n   * @param additionnalObj Addtionnal object\n   */\n  public init(obj: T, additionnalObj?: any): T {\n    return obj;\n  }\n\n  public add(storageObject: T): Observable<void> {\n    return this.persistenceService.create(this.storageKey, storageObject.name, JSON.stringify(storageObject))\n      .pipe(catchError(e => of(e)),\n        mergeMap(\n          result => {\n            const newObj = storageObject;\n            newObj['id'] = result.id;\n            return this.persistenceService.update(result.id, JSON.stringify(newObj), (result as any).last_update_date);\n          }\n        ),\n        mergeMap(\n          (d) => this.list(this.page.size, this.page.number, 'desc')\n        )\n      );\n  }\n\n  public remove(id: string): Observable<void> {\n    return this.persistenceService.delete(id).pipe(catchError(e => of(e)), mergeMap(result => {\n      this.storageObjectMap.delete(id);\n      return this.list(this.page.size, this.page.number, 'desc');\n    }));\n  }\n\n  public list(size: number, page: number, order: string, key = undefined): Observable<void> {\n    return this.persistenceService.list(this.storageKey, size, page, order, key)\n      .pipe(catchError(e => of(e)), map((dataResource: DataResource) => {\n        const copiedData = new Array<T>();\n        let total = 0;\n        if (dataResource.count && dataResource.count > 0) {\n          Array.from(dataResource.data ?? []).forEach((obj: DataWithLinks) => {\n            const newObj: T = this.init(JSON.parse(obj.doc_value) as T, this.additionalObject);\n            copiedData.push(newObj);\n            this.storageObjectMap.set(newObj.id, newObj);\n          });\n          total = dataResource.total ?? 0;\n        }\n        this.dataChange.next({ total: total, items: copiedData as T[] });\n      }));\n  }\n\n  public update(id: string, storageObject: T): Observable<void> {\n    return this.persistenceService.get(id)\n      .pipe(mergeMap(s => this.persistenceService.update(id, JSON.stringify(storageObject), (s.last_update_date as any))\n        .pipe(catchError(e => of(e)), mergeMap((result =>\n          this.list(this.page.size, this.page.number, 'desc')\n        )))));\n\n  }\n\n  public setPage(page: { size: number; number: number; }) {\n    this.page = page;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { BookMark, BookMarkType } from './model';\nimport { ArlasBookmarkService } from './bookmark.service';\nimport { Guid } from '../../tools/utils';\nimport { Observable } from 'rxjs';\nimport { PersistenceService } from '../persistence/persistence.service';\nimport { ArlasPersistenceDatabase } from '../../tools/arlasPersistenceDatabase';\nimport { ArlasStartupService } from '../startup/startup.service';\n\n\nexport class BookmarkPersistenceDatabase extends ArlasPersistenceDatabase<BookMark> {\n\n  public constructor(\n    public bookmarkService: ArlasBookmarkService,\n    public persistenceService: PersistenceService,\n    public startupService: ArlasStartupService) {\n    super('bookmark', persistenceService, bookmarkService);\n  }\n\n  public init(bookmark: BookMark, service: ArlasBookmarkService): BookMark {\n    const initBookmark = {\n      id: bookmark.id,\n      date: new Date(bookmark.date),\n      name: bookmark.name,\n      prettyFilter: bookmark.prettyFilter,\n      url: bookmark.url,\n      type: bookmark.type,\n      color: bookmark.color,\n      count: new Observable<0>(),\n      views: bookmark.views,\n      collections: bookmark.collections\n    };\n    service.setBookMarkCount(initBookmark);\n    return initBookmark;\n  }\n\n  public createBookmark(name: string, prettyFilter: string, url: string, collections: Set<string>,\n    type: BookMarkType, color: string, id?: string, date?: Date, views?: number): BookMark {\n    let uid = '';\n    let bookmarkDate: Date;\n    let bookmarkViews: number;\n    if (id) {\n      uid = id;\n    } else {\n      const guid = new Guid();\n      uid = guid.newGuid();\n    }\n    if (date) {\n      bookmarkDate = new Date(date);\n    } else {\n      bookmarkDate = new Date();\n    }\n    if (views) {\n      bookmarkViews = views;\n    } else {\n      bookmarkViews = 0;\n    }\n    const bookMark: BookMark = {\n      id: uid,\n      date: bookmarkDate,\n      name: name,\n      prettyFilter: prettyFilter,\n      url: url,\n      type: type,\n      color: color,\n      count: new Observable<0>(),\n      views: bookmarkViews,\n      collections: Array.from(collections).sort().join(',')\n    };\n    this.bookmarkService.setBookMarkCount(bookMark);\n    return bookMark;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Observable } from 'rxjs';\nimport { ArlasStorageObject } from '../../tools/utils';\n\nexport enum BookMarkType {\n  enumIds,\n  filterWithTime,\n  filterWithoutTime\n}\n\nexport interface BookMark extends ArlasStorageObject {\n\n  prettyFilter: string;\n  url: string;\n  type: BookMarkType;\n  color: string;\n  count: Observable<number>;\n  /** @deprecated */\n  views: number;\n  collections: string;\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';\nimport { ActivatedRoute, Params, Router } from '@angular/router';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Expression, Filter } from 'arlas-api';\nimport { Collaboration, fromEntries, projType } from 'arlas-web-core';\nimport { Observable, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { getKeyForColor } from '../../tools/utils';\nimport { ArlasIamService } from '../arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../authentification/authentification.service';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { PersistenceService } from '../persistence/persistence.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\nimport { ArlasStartupService } from '../startup/startup.service';\nimport { BookmarkLocalDatabase } from './bookmarkLocalDatabase';\nimport { BookmarkPersistenceDatabase } from './bookmarkPersistenceDatabase';\nimport { BookMark, BookMarkType } from './model';\n\n@Injectable()\nexport class ArlasBookmarkService {\n  public dataBase!: BookmarkLocalDatabase | BookmarkPersistenceDatabase;\n  public bookMarkMap: Map<string, BookMark> = new Map<string, BookMark>();\n  public selectorById?: string;\n  public count = 0;\n  public maxSize = 1000;\n  public pageNumber = 1;\n  public onAction = new Subject<{ action: string; id: string; }>();\n\n  public constructor(\n    private readonly collaborativesearchService: ArlasCollaborativesearchService,\n    private readonly activatedRoute: ActivatedRoute,\n    private readonly snackBar: MatSnackBar,\n    private readonly arlasStartupService: ArlasStartupService,\n    private readonly authentService: AuthentificationService,\n    private readonly arlasIamService: ArlasIamService,\n    private readonly persistenceService: PersistenceService,\n    private readonly settingsService: ArlasSettingsService,\n    private readonly router: Router,\n    private readonly translate: TranslateService\n  ) {\n    if (this.arlasStartupService.shouldRunApp && !this.arlasStartupService.emptyMode) {\n      const settings = this.settingsService.getSettings();\n      const useAuthent = !!settings && !!settings.authentication && !!settings.authentication.use_authent;\n      // The default behavior is openid, so if there is no auth_mode specified, it is openid\n      const useAuthentOpenID = useAuthent && settings.authentication?.auth_mode !== 'iam';\n      const useAuthentIam = useAuthent && settings.authentication?.auth_mode === 'iam';\n      let userConnected = false;\n      if(useAuthentOpenID){\n        userConnected = this.authentService.hasValidAccessToken() && this.authentService.hasValidIdToken();\n      }\n      if(useAuthentIam){\n        userConnected = !!this.arlasIamService.isAuthenticated();\n      }\n      if (this.persistenceService.isAvailable && userConnected ) {\n        this.dataBase = new BookmarkPersistenceDatabase(this, this.persistenceService, this.arlasStartupService);\n        this.listBookmarks(this.maxSize, this.pageNumber ).subscribe({\n          error(err) {\n            console.error(err);\n          }\n        });\n        this.dataBase.dataChange.subscribe(() => {\n          this.bookMarkMap = this.dataBase.storageObjectMap;\n        });\n      } else {\n        this.dataBase = new BookmarkLocalDatabase(this, this.collaborativesearchService, this.arlasStartupService);\n        this.dataBase.dataChange.subscribe(() => {\n          this.bookMarkMap = this.dataBase.storageObjectMap;\n        });\n      }\n      this.selectorById = this.arlasStartupService.selectorById;\n\n    }\n  }\n\n  /**\n   * List all bookmark for the user to update dataBase\n   */\n  public listBookmarks(size: number, pageNumber: number): Observable<void> {\n    return (this.dataBase as BookmarkPersistenceDatabase).list(size, pageNumber, 'desc');\n  }\n\n  public setPage(size: number, pageNumber: number) {\n    (this.dataBase as BookmarkPersistenceDatabase).setPage({ size: size, number: pageNumber });\n  }\n\n  public addBookmark(newBookMarkName: string, selectedItem?: Set<string>): Observable<void> {\n    if (selectedItem) {\n      const url = this.getUrlFomSetIds(selectedItem);\n      const dataModel = this.collaborativesearchService.dataModelBuilder(decodeURI(url), true);\n      const collections = this.collaborativesearchService.getCollectionsFromFilters(dataModel);\n      const color = '#' + getKeyForColor(dataModel);\n      const bookmarkFromItem = this.dataBase.createBookmark(newBookMarkName, newBookMarkName, url, collections, BookMarkType.enumIds, color);\n      return this.dataBase.add(bookmarkFromItem);\n    } else {\n      let filter = '';\n      this.collaborativesearchService.collaborations.forEach((k, v) => {\n        filter = filter + '-' + this.collaborativesearchService.registry.get(v)?.getFilterDisplayName();\n      });\n      const url = this.collaborativesearchService.urlBuilder().split('filter=')[1];\n      const dataModel = this.collaborativesearchService.dataModelBuilder(decodeURI(url), true);\n      const collections = this.collaborativesearchService.getCollectionsFromFilters(dataModel);\n      const color = '#' + getKeyForColor(dataModel);\n      let type: BookMarkType;\n      if (!this.isTemporalFilter(dataModel)) {\n        type = BookMarkType.filterWithoutTime;\n      } else {\n        type = BookMarkType.filterWithTime;\n      }\n      const bookmarkFromFilter = this.dataBase.createBookmark(newBookMarkName, filter.substring(1, filter.length), url, collections, type, color);\n      return this.dataBase.add(bookmarkFromFilter);\n    }\n  }\n\n\n  public createCombineBookmark(newBookMarkName: string, selectedBookmark: Set<string>): Observable<void> {\n    if (this.bookMarkMap.get(Array.from(selectedBookmark)[0])?.type === BookMarkType.enumIds) {\n      return this.addBookmark(newBookMarkName, this.combineBookmarkFromIds(selectedBookmark));\n    } else {\n      const dataModel = this.combineBookmarkFromFilter(selectedBookmark);\n      const collections = this.collaborativesearchService.getCollectionsFromFilters(dataModel);\n      const color = '#' + getKeyForColor(dataModel);\n      /** map to object (using fromEntries) so that the stringify works properly */\n      Array.from(Object.keys(dataModel)).forEach(identifier => {\n        dataModel[identifier] = { ...dataModel[identifier]};\n        // Type as any so that the Map can be transformed into a Record which is stringifyable\n        dataModel[identifier].filters = fromEntries(dataModel[identifier].filters) as any;\n      });\n      const url = JSON.stringify(dataModel);\n      let type: BookMarkType;\n      if (!this.isTemporalFilter(dataModel)) {\n        type = BookMarkType.filterWithoutTime;\n      } else {\n        type = BookMarkType.filterWithTime;\n      }\n      let filter = '';\n      Object.keys(dataModel).forEach(v => {\n        filter = filter + '-' + this.collaborativesearchService.registry.get(v)?.getFilterDisplayName();\n      });\n      const bookmark = this.dataBase.createBookmark(newBookMarkName, filter.substring(1, filter.length), url, collections, type, color);\n      return this.dataBase.add(bookmark);\n    }\n  }\n\n  public removeBookmark(id: string) {\n    this.dataBase.remove(id).subscribe({\n      next: () => this.onAction.next({\n        action: 'delete',\n        id: id\n      }),\n      error: err => console.error(err)\n    });\n  }\n\n  public viewBookMark(id: string) {\n    const bookmark = this.getBookmarkById(id);\n    if (bookmark) {\n      const dataModel = this.collaborativesearchService.dataModelBuilder(decodeURI(bookmark.url), true);\n      this.viewFromDataModel(dataModel);\n      this.openSnackBar(this.translate.instant('Loading bookmark', {bookmark: bookmark.name}));\n    }\n  }\n\n  public openSnackBar(message: string) {\n    const config = new MatSnackBarConfig();\n    config.panelClass = ['custom-class'];\n    config.duration = 750;\n    config.verticalPosition = 'top';\n    this.snackBar.open(message, '', config);\n  }\n\n  public setBookMarkCount(bookMark: BookMark) {\n    bookMark.count = this.getCountFromUrl(bookMark.url);\n  }\n\n  public viewCombineBookmark(selectedBookmark: Set<string>) {\n    let dataModel: Record<string, Collaboration>;\n    if (this.bookMarkMap.get(Array.from(selectedBookmark)[0])?.type === BookMarkType.enumIds) {\n      const url = this.getUrlFomSetIds(this.combineBookmarkFromIds(selectedBookmark, true));\n      dataModel = this.collaborativesearchService.dataModelBuilder(decodeURI(url), true);\n    } else {\n      dataModel = this.combineBookmarkFromFilter(selectedBookmark, true);\n    }\n    this.viewFromDataModel(dataModel);\n  }\n\n  public init(bookmark: BookMark) {\n    const initBookmark: BookMark = {\n      id: bookmark.id,\n      date: new Date(bookmark.date),\n      name: bookmark.name,\n      prettyFilter: bookmark.prettyFilter,\n      url: bookmark.url,\n      type: bookmark.type,\n      color: bookmark.color,\n      count: new Observable<0>(),\n      views: bookmark.views,\n      collections: bookmark.collections\n    };\n    this.setBookMarkCount(initBookmark);\n    return initBookmark;\n  }\n\n  public updateBookmarkName(bookmarkName: string, id: string){\n    const bookmark = this.getBookmarkById(id);\n    if (bookmark) {\n      bookmark.name = bookmarkName;\n      this.dataBase.update(id, bookmark).subscribe(() => console.log(this.bookMarkMap));\n    }\n  }\n\n  private viewFromDataModel(dataModel: Record<string, Collaboration>) {\n    this.collaborativesearchService.setCollaborations(dataModel);\n    let language = null;\n    if (this.activatedRoute.snapshot.queryParams['lg']) {\n      language = this.activatedRoute.snapshot.queryParams['lg'];\n    }\n    const queryParams: Params = Object.assign({}, this.activatedRoute.snapshot.queryParams);\n    /** map to object (using fromEntries) so that the stringify works properly */\n    Array.from(Object.keys(dataModel)).forEach(identifier => {\n      dataModel[identifier] = { ...dataModel[identifier]};\n      // Type as any so that the Map can be transformed into a Record which is stringifyable\n      dataModel[identifier].filters = fromEntries(dataModel[identifier].filters) as any;\n    });\n    queryParams['filter'] = JSON.stringify(dataModel);\n    if (language) {\n      queryParams['lg'] = language;\n    }\n    this.router.navigate([], { queryParams: queryParams, relativeTo: this.activatedRoute });\n  }\n\n  private combineBookmarkFromIds(selectedBookmark: Set<string>, changeOperator = false): Set<string> {\n    const ids = new Array<string>();\n    selectedBookmark.forEach(id => {\n      const bookmark = this.bookMarkMap.get(id) as BookMark;\n      const dataModel = this.collaborativesearchService.dataModelBuilder(bookmark.url.replace('filter=', ''), changeOperator);\n      /** selectorById is the identifier of a resultlist contributor named 'resultlist' */\n      if (this.selectorById && dataModel[this.selectorById]?.filters) {\n        dataModel[this.selectorById].filters.forEach((filters: Filter[], collection: string) => {\n          /** for now resultlists are monocolleection, so this code will behave the same as the precedent */\n          filters.forEach(filter => {\n            if (!!filter.f && filter.f.length > 0 && !!filter.f[0] && filter.f[0].length > 0) {\n              filter.f[0][0].value.split(',').forEach(i => ids.push(i));\n            }\n          });\n        });\n      }\n    });\n    return new Set(ids);\n  }\n\n\n  private combineBookmarkFromFilter(selectedBookmark: Set<string>, changeOperator = false): Record<string, Collaboration> {\n    const dataModel: Record<string, Collaboration> = {};\n    selectedBookmark.forEach(id => {\n      const bookmark = this.bookMarkMap.get(id) as BookMark;\n      const bookMarkDataModel = this.collaborativesearchService.dataModelBuilder(bookmark.url.replace('filter=', ''), changeOperator);\n      if (Object.keys(dataModel).length === 0) {\n        Object.keys(bookMarkDataModel).forEach(k => {\n          dataModel[k] = bookMarkDataModel[k];\n        });\n      } else {\n        Object.keys(bookMarkDataModel).forEach(k => {\n          if (dataModel[k] === undefined) {\n            dataModel[k] = bookMarkDataModel[k];\n          } else {\n            bookMarkDataModel[k].filters\n              .forEach((filters, collection) => {\n                if (dataModel[k].filters.get(collection) === undefined) {\n                  dataModel[k].filters.set(collection, filters);\n                } else {\n                  if (!!filters && filters.length > 0) {\n                    /** for now we only have one filter */\n                    const filter = filters[0];\n                    Object.keys(filter).forEach(keyfil => {\n                      if (keyfil === 'f' || keyfil === 'q') {\n                        const collectionFilters = dataModel[k].filters.get(collection) ?? [{}];\n                        if (collectionFilters?.[0]?.[keyfil] === undefined) {\n                          /** for now we only have one filter */\n                          collectionFilters[0][keyfil] = bookMarkDataModel[k].filters.get(collection)?.[0][keyfil] as any;\n                          dataModel[k].filters.set(collection, collectionFilters);\n                        } else {\n                          bookMarkDataModel[k].filters.get(collection)?.[0]?.[keyfil]\n                            ?.forEach(ex => ex\n                              .forEach(e => {\n                                collectionFilters[0][keyfil] ??= [[]];\n                                collectionFilters[0][keyfil][0].push(e as any);\n                              }));\n                        }\n                      }\n                    });\n                  }\n\n                }\n              });\n          }\n        });\n      }\n    });\n    return dataModel;\n  }\n\n  private getCountFromUrl(url: string): Observable<number> {\n    const dataModel = this.collaborativesearchService.dataModelBuilder(url);\n    const defaultCollection = this.collaborativesearchService.defaultCollection;\n    const filters: Array<Filter> = [];\n    Object.keys(dataModel).forEach(key => {\n      if (dataModel[key].filters as Map<string, Filter[]>) {\n        const defaultCollectionFilters = dataModel[key].filters.get(defaultCollection);\n        if (!!defaultCollectionFilters) {\n          defaultCollectionFilters.forEach(filter => {\n            filters.push(filter);\n          });\n        }\n      }\n    });\n    return this.collaborativesearchService.resolveComputeHits([projType.count, {}], filters,\n      this.collaborativesearchService.defaultCollection)\n      .pipe(map(hits => hits.totalnb));\n  }\n\n  private getBookmarkById(id: string) {\n    return Array.from(this.bookMarkMap.values()).find(bookmark => bookmark.id === id);\n  }\n\n  private getUrlFomSetIds(selectedItem: Set<string>): string {\n    const dataModel: Record<string, Collaboration> = {};\n    const collaboration: Collaboration = {\n      filters: new Map<string, Filter[]>(),\n      enabled: true,\n    };\n    const f: Array<Expression> = [];\n    let values = '';\n    selectedItem.forEach(s => {\n      values = values + s + ',';\n\n    });\n    const e: Expression = {\n      field: this.arlasStartupService.collectionId,\n      op: Expression.OpEnum.Eq,\n      value: values.substring(0, values.length - 1)\n    };\n    f.push(e);\n    const filters: Filter = {\n      f: [f]\n    };\n    const collabFilters = new Map<string, Filter[]>();\n    collabFilters.set(this.collaborativesearchService.defaultCollection, [filters]);\n    collaboration.filters = collabFilters;\n    /** map to object (using fromEntries) so that the stringify works properly */\n    if (this.selectorById) {\n      dataModel[this.selectorById] = { ...collaboration };\n      // Type as any so that the Map can be transformed into a Record which is stringifyable\n      dataModel[this.selectorById].filters = fromEntries(dataModel[this.selectorById].filters) as any;\n    } else {\n      throw new Error('[ARLAS][BOOKMARK] No resultlist has been defined, unable to get the selectorById');\n    }\n\n    const url = JSON.stringify(dataModel);\n    return url;\n\n  }\n\n  private isTemporalFilter(dataModel: Object): boolean {\n    let isTemporalFilter = false;\n    Object.keys(dataModel).forEach(key => {\n      if (this.arlasStartupService.temporalContributor.indexOf(key) >= 0) {\n        isTemporalFilter = true;\n      }\n    });\n    return isTemporalFilter;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, Inject } from '@angular/core';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { ArlasBookmarkService } from '../../services/bookmark/bookmark.service';\n\n@Component({\n  templateUrl: './bookmark-add-dialog.component.html',\n  styleUrls: ['./bookmark-add-dialog.component.scss'],\n  imports: [\n    TranslatePipe,\n    MatFormFieldModule,\n    MatInputModule,\n    MatButtonModule,\n    ReactiveFormsModule,\n    MatDialogModule\n  ]\n})\nexport class BookmarkAddDialogComponent {\n  public bookmarkName = new FormControl('', [Validators.required]);\n  public errorMessage = '';\n  public disableSubmit = false;\n  public constructor(\n    private bookmarkService: ArlasBookmarkService,\n    private translateService: TranslateService,\n    public dialogRef: MatDialogRef<BookmarkAddDialogComponent>,\n    @Inject(MAT_DIALOG_DATA) protected data: { name: string | undefined; }) { }\n\n  public cancel(): void {\n    this.dialogRef.close();\n  }\n\n  public submit(): void {\n    this.bookmarkName.setErrors({ 'incorrect': false });\n    this.disableSubmit = true;\n    if (this.bookmarkName.value && !this.data.name) {\n      this.bookmarkService.addBookmark(this.bookmarkName.value).subscribe({\n        next: () => {\n          this.dialogRef.close();\n          this.bookmarkService.openSnackBar(marker('Bookmark succefully created.'));\n        },\n        error: e => {\n          this.bookmarkName.setErrors({ 'incorrect': true });\n          if (e.message === 'Required parameter id was null or undefined when calling update.') {\n            this.errorMessage = this.translateService.instant('Bookmark already exists');\n          } else {\n            this.errorMessage = this.translateService.instant('Bookmark creation error');\n          }\n        },\n        complete: () => this.disableSubmit = false\n      });\n    } else {\n      this.dialogRef.close((this.bookmarkName.value));\n    }\n  }\n\n  public pressEvent(event: KeyboardEvent) {\n    if (event.keyCode === 13) {\n      this.submit();\n    }\n  }\n}\n\n","\n<div mat-dialog-content class=\"bookmark__add\">\n  <h1 class=\"bookmark__add--title\" mat-dialog-title>\n    {{ 'Add a bookmark' | translate }}\n  </h1>\n  <mat-form-field class=\"bookmark__add--input\" appearance=\"outline\">\n    <mat-label>{{ 'Bookmark name' | translate }}</mat-label>\n    <input matInput tabindex=\"1\" [formControl]=\"bookmarkName\" (keypress)=\"pressEvent($event)\">\n    @if (bookmarkName.invalid) {\n      <mat-error>{{errorMessage | translate}}</mat-error>\n    }\n  </mat-form-field>\n</div>\n<div mat-dialog-actions class=\"bookmark__add--actions\">\n  <button matButton=\"filled\" [disabled]=\"disableSubmit\" class=\"modal_button\" color=\"accent\" (click)=\"submit()\"  tabindex=\"2\">{{ 'OK' | translate }}</button>\n  <button matButton=\"outlined\" class=\"modal_button\" (click)=\"cancel()\" tabindex=\"-1\">{{ 'Cancel' | translate }}</button>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { AsyncPipe, DatePipe } from '@angular/common';\nimport { Component, Inject, OnDestroy, Output } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Subject, takeUntil } from 'rxjs';\nimport { ArlasBookmarkService } from '../../services/bookmark/bookmark.service';\nimport { BookmarkPersistenceDatabase } from '../../services/bookmark/bookmarkPersistenceDatabase';\nimport { BookMark } from '../../services/bookmark/model';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { BookmarkAddDialogComponent } from './bookmark-add-dialog.component';\n\n@Component({\n  selector: 'arlas-bookmark',\n  templateUrl: './bookmark.component.html',\n  styleUrls: ['./bookmark.component.scss'],\n  imports: [\n    MatTableModule,\n    MatDialogModule,\n    TranslatePipe,\n    MatIconModule,\n    AsyncPipe,\n    MatTooltipModule,\n    DatePipe,\n    MatMenuModule,\n    MatCheckboxModule,\n    MatButtonModule\n  ]\n})\nexport class BookmarkComponent implements OnDestroy {\n\n  public bookmarks: BookMark[] = [];\n  public columnsToDisplay = ['checked', 'name', 'date', 'count', 'actions'];\n  public itemsCheck: Array<string> = new Array<string>();\n  public disableCombine = true;\n  public showCombine = true;\n\n\n  public isPersistenceActive = false;\n  public currentCollectionsSet = new Set<string>();\n\n  @Output() public actions: Subject<{ action: string; id: string; geometry?: any; }> = new Subject<any>();\n\n  private readonly _onDestroy$ = new Subject<boolean>();\n\n  public constructor(\n    private readonly bookmarkService: ArlasBookmarkService,\n    private readonly dialog: MatDialog,\n    private readonly arlasCollaborativesearchService: ArlasCollaborativesearchService,\n    @Inject(MAT_DIALOG_DATA) public data: { isSelect: boolean; }\n  ) {\n    if (!!data && !data.isSelect) {\n      // Remove the 'checked' column\n      this.columnsToDisplay = ['name', 'date', 'count', 'actions'];\n      this.showCombine = false;\n    }\n\n    this.currentCollectionsSet = new Set(this.arlasCollaborativesearchService.collections);\n    // Init component with data from persistence server, if defined and server is reachable\n    if (this.bookmarkService.dataBase instanceof BookmarkPersistenceDatabase) {\n      this.isPersistenceActive = true;\n      this.bookmarkService.setPage(this.bookmarkService.maxSize, this.bookmarkService.pageNumber);\n      this.getBookmarksList();\n      this.bookmarkService.dataBase.dataChange\n        .pipe(takeUntil(this._onDestroy$))\n        .subscribe((data: { total: number; items: BookMark[]; }) => {\n          this.bookmarkService.count = data.total;\n          this.bookmarks = this.getDisplayableBookmarks(data.items);\n        });\n    } else {\n      this.bookmarkService.dataBase.dataChange\n        .pipe(takeUntil(this._onDestroy$))\n        .subscribe((data: BookMark[]) => {\n          this.bookmarkService.count = data.length;\n          this.bookmarks = this.getDisplayableBookmarks(data);\n        });\n    }\n  }\n\n  public ngOnDestroy() {\n    this._onDestroy$.next(true);\n    this._onDestroy$.complete();\n  }\n\n  public getDisplayableBookmarks(items: BookMark[]) {\n    return items.filter(bk => {\n      let allBookmarksCollectionsPresent = true;\n      if (bk.collections) {\n        const bookmarCollections = bk.collections.split(',');\n        const absent = bookmarCollections.find(bc => !this.currentCollectionsSet.has(bc));\n        allBookmarksCollectionsPresent = !absent;\n        return allBookmarksCollectionsPresent;\n      } else {\n        return false;\n      }\n    });\n  }\n\n  public getBookmarksList() {\n    // The subscribe is needed to consume the response to the request and create a dataChange\n    this.bookmarkService.listBookmarks(this.bookmarkService.maxSize, this.bookmarkService.pageNumber).subscribe({\n      error(err) {\n        console.error(err);\n      }\n    });\n  }\n\n\n  public selectBookmark(event: { checked: boolean; }, id: string) {\n    if (event.checked) {\n      this.itemsCheck.push(id);\n    } else {\n      const index = this.itemsCheck.indexOf(id, 0);\n      if (index > -1) {\n        this.itemsCheck.splice(index, 1);\n      }\n    }\n    this.disableCombine = this.itemsCheck.length < 2;\n  }\n\n  public viewBookmark(id: string) {\n    this.bookmarkService.viewBookMark(id);\n    this.actions.next({ action: 'view', id: id });\n  }\n\n  public removeBookmark(id: string) {\n    this.bookmarkService.removeBookmark(id);\n    this.selectBookmark({ checked: false }, id);\n    this.actions.next({ action: 'remove', id: id });\n  }\n\n  public combine() {\n    const dialogRef = this.dialog.open(BookmarkAddDialogComponent, { data: { name: null }, id: 'add-bookmark-dialog' });\n    dialogRef.afterClosed().subscribe(bookmarkName => {\n      if (bookmarkName) {\n        this.bookmarkService.createCombineBookmark(bookmarkName, new Set(this.itemsCheck));\n      }\n    });\n  }\n\n  public viewCombine() {\n    this.bookmarkService.viewCombineBookmark(new Set(this.itemsCheck));\n    this.actions.next({ action: 'view-combine', id: this.itemsCheck.join('#') });\n  }\n\n  public updateBookMarkName(id: string, name: string) {\n    const dialogRef = this.dialog.open(BookmarkAddDialogComponent, { data: { name: name }, id: 'add-bookmark-dialog' });\n    dialogRef.afterClosed().subscribe(bookmarkName => {\n      if (bookmarkName) {\n        this.bookmarkService.updateBookmarkName(bookmarkName, id);\n      }\n    });\n  }\n}\n","<mat-table [dataSource]=\"bookmarks\" class=\"bookmark-table-items\">\n  <ng-container matColumnDef=\"checked\">\n    <mat-header-cell *matHeaderCellDef> # </mat-header-cell>\n    <mat-cell *matCellDef=\"let bookmark\">\n      <mat-checkbox class=\"bookmark-check\" (change)=\"selectBookmark($event, bookmark.id)\"></mat-checkbox>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"actions\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Actions' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let bookmark\">\n      <mat-icon mat-icon-button style=\"cursor: pointer;\" (click)=\"$event.stopPropagation()\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n      <mat-menu #menu=\"matMenu\">\n        <button mat-menu-item (click)=\"viewBookmark(bookmark.id)\">\n          <mat-icon>remove_red_eye</mat-icon><span>{{'View' | translate}}</span>\n        </button>\n        <button mat-menu-item (click)=\"removeBookmark(bookmark.id)\">\n          <mat-icon >delete</mat-icon><span>{{'Delete' | translate}}</span>\n        </button>\n        <button mat-menu-item (click)=\"updateBookMarkName(bookmark.id, bookmark.name)\">\n          <mat-icon >edit</mat-icon><span>{{'Rename' | translate}}</span>\n        </button>\n      </mat-menu>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"date\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Date' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let bookmark\"> {{bookmark.date | date: 'dd/MM/yyyy HH:mm:ss'}} </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"name\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Name' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let bookmark\">\n      <mat-icon [style.color]=\"bookmark.color\">label</mat-icon>\n      <div class=\"bookmark__name\" [matTooltip]=\"'View' | translate\" [matTooltipPosition]=\"'right'\"\n        (click)=\"viewBookmark(bookmark.id)\">{{bookmark.name}}</div>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"count\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Count' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let bookmark\"> {{bookmark.count | async}}</mat-cell>\n  </ng-container>\n\n  <mat-header-row *matHeaderRowDef=\"columnsToDisplay; sticky: true\"></mat-header-row>\n  <mat-row *matRowDef=\"let myRowData; columns: columnsToDisplay\"></mat-row>\n</mat-table>\n\n\n@if (showCombine) {\n  <div class=\"bookmark-actions__description\">\n    <mat-icon>info</mat-icon>\n    <span>\n      {{ 'Bookmarks can be combined to create a new one containing the filters of all selected bookmarks.' | translate }}\n      {{ 'The color next to the name matches the combination of fields and operations of the filters.' | translate }}\n      {{ 'Filters on the same field are combined with an OR, whereas for different fields it is with an AND.' | translate }}\n    </span>\n  </div>\n  <div class=\"bookmark-actions\">\n    <button class=\"bookmark-action-button\" matButton=\"outlined\" color=\"primary\" [disabled]=\"disableCombine\" (click)=\"viewCombine()\">{{ 'Apply combination' | translate }}</button>\n    <button class=\"bookmark-action-button\" matButton=\"filled\" color=\"primary\" [disabled]=\"disableCombine\" (click)=\"combine()\">{{ 'Combine into a bookmark' | translate }}</button>\n  </div>\n}\n\n<mat-dialog-actions align=\"end\">\n  <button matButton=\"outlined\" mat-dialog-close>{{ 'Close' | translate }}</button>\n</mat-dialog-actions>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, DestroyRef, inject, Input, OnInit, ViewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenu, MatMenuModule } from '@angular/material/menu';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasBookmarkService } from '../../services/bookmark/bookmark.service';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { BookmarkAddDialogComponent } from '../bookmark/bookmark-add-dialog.component';\nimport { BookmarkComponent } from '../bookmark/bookmark.component';\n\n@Component({\n  selector: 'arlas-bookmark-menu',\n  templateUrl: './bookmark-menu.component.html',\n  styleUrls: ['./bookmark-menu.component.scss'],\n  imports: [\n    MatMenuModule,\n    MatIconModule,\n    TranslatePipe,\n    MatTooltipModule\n  ]\n})\nexport class BookmarkMenuComponent implements OnInit {\n\n  /**\n   * @Input : Angular\n   * @description Icon to use for the 'Manage dataset' action\n   */\n  @Input() public icon = 'view_list';\n\n  @Input() public isSelectMultipleBookmarks = true;\n\n  @ViewChild('menu') public matMenu?: MatMenu;\n\n  public nbCollaborations = 0;\n  public addBookmarkDisabled = false;\n  public infoMessage?: string;\n\n  private readonly destroyRef = inject(DestroyRef);\n\n  public constructor(\n    private readonly dialog: MatDialog,\n    public readonly bookmarkService: ArlasBookmarkService,\n    private readonly collabrativeSearchService: ArlasCollaborativesearchService\n  ) { }\n\n  public ngOnInit(): void {\n    this.nbCollaborations = this.collabrativeSearchService.collaborations.size;\n    this.checkAddButtonState();\n    this.collabrativeSearchService.collaborationBus.pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe(() => {\n        this.nbCollaborations = this.collabrativeSearchService.collaborations.size;\n        this.checkAddButtonState();\n      });\n  }\n\n  private checkAddButtonState() {\n    this.addBookmarkDisabled = this.bookmarkService.count >= this.bookmarkService.maxSize\n      || this.nbCollaborations === 0;\n    const infoMessagesKeys = [];\n    this.infoMessage = '';\n    if (this.bookmarkService.count >= this.bookmarkService.maxSize) {\n      infoMessagesKeys.push('maxSizeExceeded');\n    }\n\n    if (this.nbCollaborations === 0) {\n      infoMessagesKeys.push('noFilter');\n    }\n    if (infoMessagesKeys.length > 0) {\n      this.infoMessage = marker('bookmark_' + infoMessagesKeys.join('_'));\n    }\n  }\n\n  public openDatasetListDialog() {\n    this.dialog.open(BookmarkComponent, { width: '60vw' , maxWidth: '800px',\n      data: {isSelect: this.isSelectMultipleBookmarks}, panelClass: 'bookmark-manager' });\n  }\n\n  public openDialogAdd() {\n    if (!this.addBookmarkDisabled) {\n      this.dialog.open(BookmarkAddDialogComponent, { data: { name: null }, id: 'add-bookmark-dialog' });\n    }\n  }\n\n  public viewBookmark(id: string) {\n    this.bookmarkService.viewBookMark(id);\n  }\n}\n","<mat-menu #menu=\"matMenu\">\n  <div class=\"add\">\n    <button mat-menu-item (click)=\"openDialogAdd()\" [class.full-width]=\"!addBookmarkDisabled\" [disabled]=\"addBookmarkDisabled\">\n      <mat-icon>bookmark_add</mat-icon>\n      <span>{{ \"Add a bookmark\" | translate }}</span>\n    </button>\n    @if (addBookmarkDisabled) {\n      <mat-icon class=\"info\" [matTooltip]=\"infoMessage | translate: { maxBookmarks: bookmarkService.maxSize}\"\n      matTooltipClass=\"allow-breakline\" >info_outlined</mat-icon>\n    }\n  </div>\n  <button mat-menu-item (click)=\"openDatasetListDialog()\">\n    <mat-icon>{{icon}}</mat-icon>\n    <span>{{ 'Manage bookmarks' | translate }}</span>\n  </button>\n</mat-menu>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, Input, Output, ViewChild } from '@angular/core';\nimport { Granularity, TimelineData, TimelineTooltip } from 'arlas-d3';\nimport { CalendarTimelineComponent, TranslationDirection } from 'arlas-web-components';\nimport { Subject } from 'rxjs';\nimport { ArlasOverlayService } from '../../services/overlays/overlay.service';\nimport { ArlasOverlayRef } from '../../tools/utils';\n\n\n/**\n * A Widget wraps a component from ARLAS-web-components and bind it to its contributor. The component has thus input data to plot.\n * Note: This component is binded to ARLAS-wui configuration\n */\n@Component({\n  selector: 'arlas-tool-calendar-timeline',\n  templateUrl: './calendar-timeline.component.html',\n  styleUrls: ['./calendar-timeline.component.scss'],\n  imports: [\n    CalendarTimelineComponent\n  ]\n})\nexport class CalendarTimelineToolComponent {\n\n  public tooltipEvent: Subject<TimelineTooltip> = new Subject<TimelineTooltip>();\n\n  public timelineOverlayRef?: ArlasOverlayRef;\n  @Input() public granularity?: Granularity;\n  @Input() public climatological = false;\n  @Input() public boundDates: Date[] = [];\n  @Input() public data: TimelineData[] = [];\n  @Input() public cursorPosition?: Date;\n  @Input() public hideLeftButton = false;\n  @Input() public hideRightButton = false;\n  @Output() public selectedDate: Subject<TimelineData> = new Subject();\n  @Output() public hoveredDate: Subject<TimelineTooltip> = new Subject();\n  @Output() public translate: Subject<TranslationDirection> = new Subject();\n\n  @ViewChild('calendarTimelineComponent', { static: false }) public calendarTimelineComponent?: CalendarTimelineComponent;\n\n  public constructor(\n    private readonly arlasOverlayService: ArlasOverlayService\n  ) { }\n\n  public showCalendarTimelineooltip(tooltip: TimelineTooltip, e: HTMLDivElement, xOffset: number, yOffset: number, right: boolean) {\n    if (!!this.timelineOverlayRef) {\n      this.timelineOverlayRef.close();\n    }\n    if (!!tooltip && tooltip.shown) {\n      this.timelineOverlayRef = this.arlasOverlayService.openCalendarTimelineTooltip({ data: tooltip }, e, xOffset, yOffset, right);\n    }\n  }\n\n  public hideHistogramTooltip() {\n    if (!!this.timelineOverlayRef) {\n      this.timelineOverlayRef.close();\n    }\n  }\n\n  public emitTooltip(tooltip: TimelineTooltip, e: HTMLDivElement) {\n\n    const yOffset = -110;\n    let xOffset = tooltip.position;\n    let right = false;\n    if (!!tooltip && tooltip.shown && tooltip.position > tooltip.width / 2) {\n      xOffset = -tooltip.width + tooltip.position;\n      right = true;\n    }\n    this.showCalendarTimelineooltip(tooltip, e, xOffset, yOffset, right);\n  }\n\n  public onSelectedDate(data: TimelineData) {\n    this.selectedDate.next(data);\n  }\n\n  public onTranslate(td: TranslationDirection): void {\n    this.translate.next(td);\n  }\n\n  public plot(): void {\n    if (this.calendarTimelineComponent) {\n      this.calendarTimelineComponent.plot();\n    }\n  }\n}\n","<div class=\"arlas-calendar_timeline\" #calendar_timeline_view>\n    <arlas-calendar-timeline #calendarTimelineComponent\n        [id]=\"'cc'\"\n        [boundDates]=\"boundDates\"\n        [granularity]=\"granularity\"\n        [climatological]=\"climatological\"\n        [data]=\"data\"\n        [cursorPosition]=\"cursorPosition\"\n        [hideLeftButton]=\"hideLeftButton\"\n        [hideRightButton]=\"hideRightButton\"\n        (translate)=\"onTranslate($event)\"\n        (hoveredData)=\"emitTooltip($event, calendar_timeline_view)\"\n        (selectedData)=\"onSelectedDate($event)\"\n    ></arlas-calendar-timeline>\n</div>","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject } from '@angular/core';\nimport { FormControl, FormGroup, FormsModule, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';\nimport { MatButton } from '@angular/material/button';\nimport { MatDialogActions, MatDialogClose, MatDialogContent, MatDialogTitle } from '@angular/material/dialog';\nimport { MatError, MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { ConfirmedValidator } from '../../tools/utils';\nimport { ThemeService } from '../../services/theme.service';\n\n@Component({\n  selector: 'arlas-tool-change-password',\n  templateUrl: './change-password.component.html',\n  styleUrls: [\n    './change-password.component.scss',\n    '../iam/form-style.scss'\n  ],\n  imports: [\n    MatDialogTitle, MatDialogContent, FormsModule, ReactiveFormsModule,\n    MatFormField, MatLabel, MatInput, MatError, MatButton, MatDialogClose, TranslatePipe, MatDialogActions\n  ]\n})\nexport class ChangePasswordComponent {\n  public changeForm = new FormGroup({\n    old_password: new FormControl('', [Validators.required]),\n    password: new FormControl('', [Validators.required]),\n    confirm_password: new FormControl('', [Validators.required])\n  }, ConfirmedValidator('password', 'confirm_password') as ValidatorFn);\n  public validated = false;\n  public displayForm = true;\n  private readonly theme = inject(ThemeService);\n\n  public constructor(\n    private readonly iamService: ArlasIamService,\n  ) {\n    this.theme.applyThemePreference();\n  }\n\n  public submit(): void {\n    this.validated = false;\n    this.iamService.change(this.changeForm.value.old_password as string, this.changeForm.value.password as string).subscribe({\n      next: () => {\n        this.validated = true;\n        this.changeForm.reset();\n        this.displayForm = false;\n      },\n      error: err => {\n        this.changeForm.setErrors({\n          wrong: true\n        });\n        console.error(err);\n      }\n    });\n  }\n\n}\n","<div class=\"change-title\" mat-dialog-title>\n  {{'Change password' | translate}}\n</div>\n<div mat-dialog-content class=\"change-container\">\n  <div class=\"change-form\">\n    <form [formGroup]=\"changeForm\">\n      @if (displayForm) {\n        <div class=\"iam__form-content\">\n          <mat-form-field appearance=\"outline\">\n            <mat-label>{{'Old password' | translate}}</mat-label>\n            <input matInput type=\"password\" formControlName=\"old_password\">\n          </mat-form-field>\n          <mat-form-field appearance=\"outline\">\n            <mat-label>{{'Password' | translate}}</mat-label>\n            <input matInput type=\"password\" formControlName=\"password\">\n          </mat-form-field>\n          <mat-form-field appearance=\"outline\">\n            <mat-label>{{'Confirm password' | translate}}</mat-label>\n            <input matInput type=\"password\" formControlName=\"confirm_password\">\n          </mat-form-field>\n          @if (changeForm.controls.confirm_password.touched\n            && changeForm.controls.confirm_password.invalid && changeForm.hasError('confirmedValidator', 'confirm_password')) {\n            <mat-error\n              class=\"confirm-error\">\n              {{'Password and Confirm Password must be match' | translate}}\n            </mat-error>\n          }\n        </div>\n      }\n      @if (validated) {\n        <div class=\"validate\">\n          {{'Your password has been changed.' | translate}}\n        </div>\n      }\n      @if (changeForm.getError('wrong')) {\n        <div class=\"error\">\n          {{ 'Old password does not match' | translate}}\n        </div>\n      }\n    </form>\n  </div>\n</div>\n<div mat-dialog-actions class=\"change-buttons\">\n  <button type=\"button\" matButton=\"outlined\" [mat-dialog-close]=\"true\">{{ 'Close' | translate}}</button>\n  @if (displayForm) {\n    <button type=\"button\" (click)=\"submit()\" class=\"change\" [class.active]=\"!changeForm.invalid\"\n      [disabled]=\"changeForm.invalid\" matButton=\"filled\" color=\"primary\">{{ 'Change' | translate}}</button>\n  }\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, EventEmitter, input, OnInit, Output } from '@angular/core';\nimport { MatButton } from '@angular/material/button';\nimport { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';\nimport { MatDialogActions } from '@angular/material/dialog';\nimport {\n  MatCell,\n  MatCellDef,\n  MatColumnDef,\n  MatHeaderCell,\n  MatHeaderCellDef,\n  MatHeaderRow,\n  MatHeaderRowDef,\n  MatRow,\n  MatRowDef,\n  MatTable\n} from '@angular/material/table';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { catchError, of, take } from 'rxjs';\nimport { ErrorService } from '../../../services/error/error.service';\nimport { PersistenceService } from '../../../services/persistence/persistence.service';\nimport { ArlasConfigService } from '../../../services/startup/startup.service';\nimport { Config } from '../../../tools/utils';\n\nexport interface PersistenceGroup {\n  name: string;\n  label: string;\n  reader: boolean;\n  writer: boolean;\n}\n@Component({\n  selector: 'arlas-share-config',\n  templateUrl: './share-config.component.html',\n  styleUrls: ['./share-config.component.scss'],\n  imports: [\n    MatTable, MatColumnDef, MatHeaderCellDef, MatHeaderCell, MatCellDef, MatCell, MatDialogActions,\n    MatCheckbox, MatHeaderRowDef, MatHeaderRow, MatRowDef, MatRow, MatButton, TranslatePipe]\n})\nexport class ShareConfigComponent implements OnInit {\n\n  public config = input.required<Config>();\n  @Output() public updateEmitter: EventEmitter<[boolean, any]> = new EventEmitter();\n  public groups: Array<PersistenceGroup> = [];\n\n  public constructor(\n    private readonly persistenceService: PersistenceService,\n    private readonly configurationService: ArlasConfigService,\n    private readonly errorService: ErrorService\n  ) { }\n\n  public ngOnInit() {\n    const options = this.getOptionsSetOrg(this.config().org);\n    this.persistenceService.getGroupsByZone(this.config().zone, options).pipe(take(1)).subscribe((s: any) => {\n      this.groups = new Array();\n      s.forEach((g: string) => {\n        const paths = g.split('/');\n        const group: PersistenceGroup = {\n          name: g,\n          label: paths[paths.length - 1],\n          reader: (new Set(this.config().readers)).has(g),\n          writer: (new Set(this.config().writers)).has(g)\n        };\n        if(g === 'group/public'){\n          if(this.config().displayPublic){\n            this.groups.push(group);\n          }\n        }else{\n          this.groups.push(group);\n        }\n      });\n    });\n  }\n\n  public updateGroups() {\n    const readers = this.config().readers ? new Set(this.config().readers) : new Set<string>();\n    const writers = this.config().writers ? new Set(this.config().writers) : new Set<string>();\n    this.groups.forEach(g => {\n      if (g.reader) {\n        readers.add(g.name);\n      } else {\n        readers.delete(g.name);\n      }\n      if (g.writer) {\n        writers.add(g.name);\n      } else {\n        writers.delete(g.name);\n      }\n    });\n    const options = this.getOptionsSetOrg(this.config().org);\n    this.persistenceService\n      .update(this.config().id, this.config().value, this.config().lastUpdate,\n        this.config().name, Array.from(readers), Array.from(writers), options)\n      .pipe(\n        catchError((err) => {\n          this.errorService.closeAll().afterAllClosed.pipe(take(1))\n            .subscribe(() =>\n              this.errorService.emitUnauthorizedActionError(err.status, marker('You are not allowed to share the dashboard'), false));\n          return of(err);\n        })\n      )\n      .subscribe({\n        next: () => {\n          this.config().readers = Array.from(readers);\n          this.config().writers = Array.from(writers);\n          this.updateEmitter.emit([true, this.config]);\n        }\n      });\n    const arlasConfig = this.configurationService.parse(this.config().value);\n    if (!!arlasConfig) {\n      const resourcesGroups = this.persistenceService.dashboardToResourcesGroups(Array.from(readers), Array.from(writers));\n      if (this.configurationService.hasPreview(arlasConfig)) {\n        const previewId = this.configurationService.getPreview(arlasConfig);\n        this.persistenceService.updateResource(previewId, resourcesGroups.readers, resourcesGroups.writers, undefined, options);\n      }\n      if (this.configurationService.hasI18n(arlasConfig)) {\n        const i18nIds = this.configurationService.getI18n(arlasConfig);\n        Object.keys(i18nIds).forEach(lg => {\n          this.persistenceService.updateResource(i18nIds[lg], resourcesGroups.readers, resourcesGroups.writers, undefined, options);\n        });\n      }\n      if (this.configurationService.hasTours(arlasConfig)) {\n        const toursIds = this.configurationService.getTours(arlasConfig);\n        Object.keys(toursIds).forEach(lg => {\n          this.persistenceService.updateResource(toursIds[lg], resourcesGroups.readers, resourcesGroups.writers, undefined, options);\n        });\n      }\n    }\n  }\n\n  private getOptionsSetOrg(org: string) {\n    return this.persistenceService.getOptionsSetOrg(org);\n  }\n\n  public close() {\n    this.updateEmitter.emit([true, {}]);\n  }\n\n  public changeReader(changeValue: MatCheckboxChange, group: PersistenceGroup) {\n    group.reader = changeValue.checked;\n  }\n  public changeWriter(changeValue: MatCheckboxChange, group: PersistenceGroup) {\n    group.writer = changeValue.checked;\n  }\n}\n","<mat-table [dataSource]=\"groups\" class=\"group-table-items\">\n  <ng-container matColumnDef=\"group\">\n    <mat-header-cell *matHeaderCellDef class=\"group-cell\">{{ 'group' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let group\" class=\"group-cell\"> {{group.label}} </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"reader\">\n    <mat-header-cell *matHeaderCellDef>{{ 'reading' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let group\">\n      <mat-checkbox  color=\"primary\" [checked]=\"group.reader\" (change)=\"changeReader($event, group)\"></mat-checkbox>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"writer\">\n    <mat-header-cell *matHeaderCellDef>{{ 'writing' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let group\">\n      @if (group.label !== 'public') {\n        <mat-checkbox color=\"primary\"  [checked]=\"group.writer\" (change)=\"changeWriter($event, group)\"></mat-checkbox>\n      }\n    </mat-cell>\n  </ng-container>\n  <mat-header-row class=\"group-row\" *matHeaderRowDef=\"['group', 'reader', 'writer']\"></mat-header-row>\n  <mat-row class=\"group-row\" *matRowDef=\"let myRowData; columns: ['group', 'reader', 'writer']\"></mat-row>\n</mat-table>\n<div mat-dialog-actions class=\"share-container\">\n  <button matButton=\"filled\" class=\"modal_button share-button\" color=\"primary\" (click)=\"updateGroups()\">{{ 'Share' | translate }}</button>\n  <button matButton=\"outlined\" class=\"modal_button\" (click)=\"close()\" >{{ 'Cancel' | translate }}</button>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { CdkScrollable } from '@angular/cdk/scrolling';\nimport { Component, Inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButton, MatIconButton } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogActions, MatDialogClose, MatDialogContent, MatDialogRef, MatDialogTitle } from '@angular/material/dialog';\nimport { MatFormField, MatLabel, MatSuffix } from '@angular/material/form-field';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatInput } from '@angular/material/input';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { DataWithLinks } from 'arlas-persistence-api';\nimport { Observable, catchError, forkJoin, map, mergeMap, of, take, tap } from 'rxjs';\nimport { ErrorService } from '../../../services/error/error.service';\nimport { PersistenceService } from '../../../services/persistence/persistence.service';\nimport { ArlasConfigService } from '../../../services/startup/startup.service';\nimport { Config, ConfigAction, ConfigActionEnum } from '../../../tools/utils';\nimport { ShareConfigComponent } from '../share-config/share-config.component';\n\n@Component({\n  selector: 'arlas-action-modal',\n  templateUrl: './action-modal.component.html',\n  imports: [\n    MatDialogTitle, CdkScrollable, MatDialogContent, MatDialogActions, MatButton, MatDialogClose, MatFormField,\n    MatLabel, MatInput, FormsModule, MatIconButton, MatSuffix, MatIcon, ShareConfigComponent, TranslatePipe]\n})\nexport class ActionModalComponent {\n\n  public action: ConfigAction;\n  public value = '';\n  public ConfigAction = ConfigActionEnum;\n\n  public errorMessage = '';\n  public constructor(\n    @Inject(MAT_DIALOG_DATA) data: ConfigAction,\n    private dialogRef: MatDialogRef<ActionModalComponent>,\n    private persistenceService: PersistenceService,\n    private configurationService: ArlasConfigService,\n    private errorService: ErrorService\n  ) {\n    this.action = data;\n  }\n\n  public duplicate(newName: string, config: Config) {\n    const arlasConfig = this.configurationService.parse(config.value);\n    if (!!arlasConfig) {\n      const hasResources = this.configurationService.hasResources(arlasConfig);\n      if (hasResources) {\n        this.duplicateResourcesThenConfig$(arlasConfig, newName, config.org).subscribe({\n          error: error => this.raiseError(error),\n          next: () => {\n            this.dialogRef.close(this.action);\n          }\n        });\n      } else {\n        this.duplicateConfig$(config.id, newName, config.org).subscribe({\n          error: error => this.raiseError(error),\n          next: () => {\n            this.dialogRef.close(this.action);\n          }\n        });\n      }\n    } else {\n      console.error('Error duplicating the config: the config is not valid');\n    }\n  }\n\n\n  private duplicateConfig$(configId: string, newConfigName: string, org?: string) {\n    return this.persistenceService.duplicate('config.json', configId, newConfigName, this.getOptionsSetOrg(org))\n      .pipe(\n        catchError((err) => {\n          this.errorService.closeAll().afterAllClosed.pipe(take(1))\n            .subscribe(() => this.errorService.emitUnauthorizedActionError(\n              err.status, marker('You are not allowed to duplicate the dashboard'), false));\n          return of(err);\n        }));\n  }\n\n  private duplicateResourcesThenConfig$(arlasConfig: any, newConfigName: string, org: string): Observable<DataWithLinks> {\n    return this.duplicateResources$(arlasConfig, newConfigName, org)\n      .pipe(\n        mergeMap((stringifiedNewArlasConfig: string) =>\n          this.persistenceService.create('config.json', newConfigName, stringifiedNewArlasConfig, [], [],\n            this.getOptionsSetOrg(org)))\n      ).pipe(\n        catchError((err) => {\n          this.errorService.closeAll().afterAllClosed.pipe(take(1))\n            .subscribe(() => this.errorService.emitUnauthorizedActionError(\n              err.status, marker('You are not allowed to duplicate the dashboard'), false));\n          return of();\n        })\n      );\n  }\n\n  public create(name: string) {\n    this.persistenceService.create('config.json', name, '{}', [], [])\n      .subscribe({\n        next: (data) => {\n          this.errorMessage = '';\n          this.dialogRef.close(data.id);\n        },\n        error: (e) => this.raiseError(e)\n      });\n  }\n\n\n  public duplicateResources$(arlasConfig: any, newConfigName: string, org: string): Observable<string> {\n    const resources$: Observable<DataWithLinks>[] = [];\n    if (this.configurationService.hasPreview(arlasConfig)) {\n      const previewId = this.configurationService.getPreview(arlasConfig);\n      resources$.push(\n        this.duplicatePreview$(previewId, newConfigName, org).pipe(\n          tap((d: DataWithLinks) => {\n              if (d.id) {\n                this.configurationService.updatePreview(arlasConfig, d.id);\n              }\n            })\n        )\n      );\n    }\n    if (this.configurationService.hasI18n(arlasConfig)) {\n      const i18ns = this.configurationService.getI18n(arlasConfig);\n      Object.keys(i18ns).forEach(lg => {\n        resources$.push(\n          this.duplicateI18n$(i18ns[lg], lg, newConfigName, org).pipe(\n            tap((d: DataWithLinks) => {\n              if (d.id) {\n                this.configurationService.updateI18n(arlasConfig, lg, d.id);\n              }\n            })\n          )\n        );\n      });\n    }\n\n    if (this.configurationService.hasTours(arlasConfig)) {\n      const tours = this.configurationService.getTours(arlasConfig);\n      Object.keys(tours).forEach(lg => {\n        resources$.push(\n          this.duplicateTour$(tours[lg], lg, newConfigName, org).pipe(\n            tap((d: DataWithLinks) => {\n              if (d.id) {\n                this.configurationService.updateTour(arlasConfig, lg, d.id);\n              }\n            })\n          )\n        );\n      });\n    }\n\n    return forkJoin(resources$).pipe(map(p => JSON.stringify(arlasConfig)));\n  }\n\n  private duplicatePreview$(previewId: string, newConfigName: string, org?: string): Observable<DataWithLinks> {\n    const newPreviewName = newConfigName.concat('_preview');\n    return this.persistenceService.get(previewId, this.getOptionsSetOrg(org))\n      .pipe(mergeMap((p: DataWithLinks) =>\n        this.persistenceService.create('preview', newPreviewName, p.doc_value, [], [],\n          this.getOptionsSetOrg(p.doc_organization))\n      ));\n  }\n\n  private duplicateI18n$(i18nId: string, lg: string, newConfigName: string, org?: string): Observable<DataWithLinks> {\n    const newI18nName = newConfigName.concat('_i18n_' + lg);\n    return this.persistenceService.get(i18nId, this.getOptionsSetOrg(org))\n      .pipe(mergeMap((p: DataWithLinks) =>\n        this.persistenceService.create('i18n', newI18nName, p.doc_value, [], [],\n          this.getOptionsSetOrg(p.doc_organization))\n      ));\n  }\n\n  private duplicateTour$(i18nId: string, lg: string, newConfigName: string, org?: string): Observable<DataWithLinks> {\n    const newTourName = newConfigName.concat('_tour_' + lg);\n    return this.persistenceService.get(i18nId, this.getOptionsSetOrg(org))\n      .pipe(mergeMap((p: DataWithLinks) =>\n        this.persistenceService.create('tour', newTourName, p.doc_value, [], [],\n          this.getOptionsSetOrg(p.doc_organization))\n      ));\n  }\n\n  public rename(newName: string, config: Config) {\n    const options = this.getOptionsSetOrg(config.org);\n    this.persistenceService.get(config.id, options)\n      .pipe(\n        catchError((err) => {\n          this.errorService.closeAll().afterAllClosed.pipe(take(1))\n            .subscribe(() =>\n              this.errorService.emitUnauthorizedActionError(err.status, marker('You are not allowed to rename the dashboard'), false));\n          return of(err);\n        })\n      )\n      .subscribe(\n        (currentConfig: DataWithLinks) => {\n          const arlasConfig = this.configurationService.parse(currentConfig.doc_value);\n          if (!!arlasConfig) {\n            if (this.configurationService.hasPreview(arlasConfig)) {\n              const previewId = this.configurationService.getPreview(arlasConfig);\n              this.persistenceService.renameResource(previewId, newName + '_preview', options);\n            }\n            if (this.configurationService.hasI18n(arlasConfig)) {\n              const i18nIds = this.configurationService.getI18n(arlasConfig);\n              Object.keys(i18nIds).forEach(lg => {\n                this.persistenceService.renameResource(i18nIds[lg], newName + '_i18n_' + lg, options);\n              });\n            }\n            if (this.configurationService.hasTours(arlasConfig)) {\n              const toursIds = this.configurationService.getTours(arlasConfig);\n              Object.keys(toursIds).forEach(lg => {\n                this.persistenceService.renameResource(toursIds[lg], newName + '_i18n_' + lg, options);\n              });\n            }\n          }\n          this.persistenceService.rename(config.id, newName, this.getOptionsSetOrg(config.org))\n            .subscribe({\n              error: error => this.raiseError(error),\n              next: () => {\n                this.dialogRef.close(this.action);\n              }\n            });\n        });\n  }\n\n  public closeShare(event: [boolean, any]) {\n    // update share is successful, close dialog\n    if (event[0]) {\n      this.dialogRef.close(event[1]);\n    }\n  }\n\n  public raiseError(err: any) {\n    switch (err.status) {\n      case 401:\n        this.errorMessage = marker('Unauthorized to create a dashboard, you need to log in');\n        break;\n      case 403:\n        this.errorMessage = marker('Missing permissions to create a dashboard');\n        break;\n      case 500:\n        err.json().then((e: any) => {\n          if ((e.message as string)?.indexOf('already exists') > 0) {\n            this.errorMessage = marker('A configuration with this name exists already, please choose another name');\n          } else {\n            this.errorMessage = marker('An error occurred, please try later');\n          }\n        });\n        break;\n      default:\n        this.errorMessage = marker('An error occurred, please try later');\n    }\n  }\n\n  private getOptionsSetOrg(org: string | undefined) {\n    return this.persistenceService.getOptionsSetOrg(org);\n  }\n}\n\n\n","@if (action.type === ConfigAction.DELETE) {\n  <div>\n    <h2 mat-dialog-title>{{'Delete' | translate}} {{action.config.name}}?</h2>\n    <mat-dialog-content>{{'This will delete' | translate}} {{action.config.name}} {{'element and cannot be undone.' | translate}}</mat-dialog-content>\n    <mat-dialog-actions>\n      <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->\n      <button matButton=\"filled\" class=\"modal_button\" color=\"warn\" [mat-dialog-close]=\"action.config.id\">{{'Delete' | translate}}</button>\n      <button matButton=\"outlined\" class=\"modal_button\" [mat-dialog-close]=\"false\">{{'Cancel' | translate}}</button>\n    </mat-dialog-actions>\n  </div>\n} @else if (action.type === ConfigAction.DUPLICATE) {\n  <div>\n    <h2 mat-dialog-title>{{'Duplicate' | translate}} {{action.config.name}}?</h2>\n    <div mat-dialog-content>\n      <mat-form-field class=\"example-form-field\">\n        <mat-label>{{'New name' | translate}}</mat-label>\n        <input matInput type=\"text\" [(ngModel)]=\"value\" (focus)=\"errorMessage=''\">\n        @if (value) {\n          <button matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"value=''\">\n            <mat-icon>close</mat-icon>\n          </button>\n        }\n      </mat-form-field>\n      <span style=\"color: red; display: block;\">{{errorMessage | translate}}</span>\n    </div>\n    <div mat-dialog-actions>\n      <button matButton=\"filled\" class=\"modal_button\" color=\"primary\" (click)=\"duplicate(value, action.config)\">{{ 'Duplicate' | translate}}</button>\n      <button matButton=\"outlined\" class=\"modal_button\" [mat-dialog-close]=\"false\">{{ 'Cancel' | translate}}</button>\n    </div>\n  </div>\n} @else if (action.type === ConfigAction.RENAME) {\n  <div>\n    <h2 mat-dialog-title>{{'Rename' | translate}} {{action.config.name}}?</h2>\n    <div mat-dialog-content>\n      <mat-form-field class=\"example-form-field\">\n        <mat-label>{{'New name' | translate}}</mat-label>\n        <input matInput type=\"text\" [(ngModel)]=\"value\" (focus)=\"errorMessage=''\">\n        @if (value) {\n          <button matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"value=''\">\n            <mat-icon>close</mat-icon>\n          </button>\n        }\n      </mat-form-field>\n      <span style=\"color: red; display: block;\">{{errorMessage | translate}}</span>\n    </div>\n    <div mat-dialog-actions>\n      <button matButton=\"filled\" class=\"modal_button\" color=\"primary\" (click)=\"rename(value, action.config)\">{{ 'Rename' | translate}}</button>\n      <button matButton=\"outlined\" class=\"modal_button\" [mat-dialog-close]=\"false\">{{ 'Cancel' | translate}}</button>\n    </div>\n  </div>\n} @else if (action.type === ConfigAction.CREATE) {\n  <div>\n    <h2 mat-dialog-title>{{'Add a new dashboard' | translate}}</h2>\n    <div mat-dialog-content>\n      <mat-form-field class=\"example-form-field\">\n        <mat-label>{{'Name' | translate}}</mat-label>\n        <input matInput type=\"text\" [(ngModel)]=\"value\" (focus)=\"errorMessage=''\">\n        @if (value) {\n          <button matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"value=''\">\n            <mat-icon>close</mat-icon>\n          </button>\n        }\n      </mat-form-field>\n      <span style=\"color: red; display: block;\">{{errorMessage | translate}}</span>\n    </div>\n    <div mat-dialog-actions>\n      <button matButton=\"filled\" class=\"modal_button\" color=\"primary\" (click)=\"create(value)\">{{ 'Create' | translate }}</button>\n      <button matButton=\"outlined\" class=\"modal_button\" [mat-dialog-close]=\"false\">{{ 'Cancel' | translate }}</button>\n    </div>\n  </div>\n} @else if (action.type === ConfigAction.SHARE) {\n  <div>\n    <h2 mat-dialog-title>{{'Share dashboard' | translate}}</h2>\n    <div mat-dialog-content>\n      <arlas-share-config [config]=\"action.config\" (updateEmitter)=\"closeShare($event)\" ></arlas-share-config>\n    </div>\n  </div>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nexport const NO_ORGANISATION = '';\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { MatIconButton } from '@angular/material/button';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatMenu, MatMenuItem, MatMenuTrigger } from '@angular/material/menu';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Configuration, ExploreApi } from 'arlas-api';\nimport { DataWithLinks } from 'arlas-persistence-api';\nimport { Subject, from, of } from 'rxjs';\nimport { catchError, filter, map, take } from 'rxjs/operators';\nimport { ArlasIamService } from '../../../services/arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../../../services/authentification/authentification.service';\nimport { ArlasCollectionService } from '../../../services/collection/arlas-collection.service';\nimport { ErrorService } from '../../../services/error/error.service';\nimport { PersistenceService } from '../../../services/persistence/persistence.service';\nimport { ArlasSettingsService } from '../../../services/settings/arlas.settings.service';\nimport { ArlasConfigService } from '../../../services/startup/startup.service';\nimport { NO_ORGANISATION } from '../../../tools/consts';\nimport { ConfigAction, ConfigActionEnum } from '../../../tools/utils';\nimport { ActionModalComponent } from '../action-modal/action-modal.component';\n\n@Component({\n  selector: 'arlas-config-menu',\n  templateUrl: './config-menu.component.html',\n  styleUrls: ['./config-menu.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  imports: [MatIconButton, MatMenuTrigger, MatIcon, MatMenu, MatMenuItem, TranslatePipe]\n})\nexport class ConfigMenuComponent {\n  @Input() public actions: Array<ConfigAction> = [];\n\n  @Output() public actionExecutedEmitter = new Subject<ConfigAction>();\n\n  public ConfigAction = ConfigActionEnum;\n\n  public constructor(\n    private readonly dialog: MatDialog,\n    private readonly persistenceService: PersistenceService,\n    private readonly configService: ArlasConfigService,\n    private readonly collectionService: ArlasCollectionService,\n    private readonly errorService: ErrorService,\n    private readonly arlasIamService: ArlasIamService,\n    private readonly arlasSettings: ArlasSettingsService,\n    private readonly authenService: AuthentificationService\n  ) {\n\n  }\n\n  public onActionClick(action: ConfigAction): void {\n    switch (action.type) {\n      case ConfigActionEnum.VIEW: {\n        // redirect to arlas-wui-app with config ID;\n        // http://localhost:4200/?config_id=50322281-d279-11ea-9fd1-0242ac160002\n        if (action.url && action.config && action.config.id && action.configIdParam) {\n\n          let url = action.url.concat('/?' + action.configIdParam + '=').concat(action.config.id);\n          if (!!action.config.org && action.config.org !== NO_ORGANISATION) {\n            url = url.concat('&org=' + action.config.org);\n          }\n          this.openUrl(url);\n        }\n        this.actionExecutedEmitter.next(action);\n        break;\n      }\n      case ConfigActionEnum.DELETE: {\n        // Open a confirm modal to validate this choice. Available only if updatable is true for this object\n        const options = this.persistenceService.getOptionsSetOrg(action.config.org);\n        this.getDialogRef(action).subscribe(id => {\n          this.persistenceService.get(id, options).pipe(\n            catchError((err) => {\n              this.errorService.closeAll().afterAllClosed.pipe(take(1))\n                .subscribe(() =>\n                  this.errorService.emitUnauthorizedActionError(err.status, marker('You are not allowed to delete the dashboard'), false));\n              return of(err);\n            })\n          ).pipe(\n            map((p: DataWithLinks) => {\n              const parsedConfig = this.configService.parse(p.doc_value);\n              if (this.configService.hasPreview(parsedConfig)) {\n                const previewId = this.configService.getPreview(parsedConfig);\n                this.persistenceService.deleteResource(previewId, options);\n              }\n              if (this.configService.hasI18n(parsedConfig)) {\n                const i18nIds = this.configService.getI18n(parsedConfig);\n                Object.keys(i18nIds).forEach(lg => {\n                  this.persistenceService.deleteResource(i18nIds[lg], options);\n                });\n              }\n              if (this.configService.hasTours(parsedConfig)) {\n                const toursIds = this.configService.getTours(parsedConfig);\n                Object.keys(toursIds).forEach(lg => {\n                  this.persistenceService.deleteResource(toursIds[lg], options);\n                });\n              }\n              this.persistenceService.delete(id, options)\n                .subscribe(() => this.actionExecutedEmitter.next(action));\n            })\n          )\n            .subscribe();\n        });\n        break;\n      }\n      case ConfigActionEnum.EDIT: {\n        // redirect to arlas wui-builer with config ID\n        if (action.url && action.config && action.config.id) {\n          let url = action.url.concat(action.config.id);\n          if (!!action.config.org && action.config.org !== NO_ORGANISATION) {\n            url = url.concat('?org=' + action.config.org);\n          }\n          this.openUrl(url);\n        }\n        this.actionExecutedEmitter.next(action);\n        break;\n      }\n      case ConfigActionEnum.DUPLICATE:\n      case ConfigActionEnum.RENAME:\n        if (action.config && action.config.id) {\n          this.getDialogRef(action).subscribe(() => this.actionExecutedEmitter.next(action));\n        }\n        break;\n      case ConfigActionEnum.SHARE: {\n        if (action.config && action.config.id && action.config.value && JSON.parse(action.config.value).arlas?.server?.url) {\n          const arlasServerUrl = JSON.parse(action.config.value).arlas.server.url;\n          const configuration: Configuration = new Configuration();\n          const arlasExploreApi: ExploreApi = new ExploreApi(\n            configuration,\n            arlasServerUrl,\n            window.fetch\n          );\n          let headers = {};\n          const authentConfig = this.arlasSettings.getAuthentSettings();\n          if (authentConfig?.auth_mode === 'iam') {\n            headers = {\n              Authorization: 'Bearer ' + this.arlasIamService.getAccessToken(),\n              'arlas-org-filter': action.config.org\n            };\n          } else if (authentConfig?.auth_mode === 'openid') {\n            headers = {\n              Authorization: 'Bearer ' + this.authenService.accessToken,\n            };\n          }\n          const fetchOptions = { headers };\n          from(arlasExploreApi.list(false, 0, fetchOptions)).subscribe(cdrs => {\n            const publicCollections = cdrs.filter(c => (c.params.organisations as any).public).map(c => c.collection_name);\n            const dashboardCollections = Array.from(this.collectionService.getCollectionFromDashboard(JSON.parse(action.config.value)));\n            const publicChecker = (arr: string[], target: string[]) => target.every(v => arr.includes(v));\n            action.config.displayPublic = publicChecker(publicCollections, dashboardCollections);\n            this.getDialogRef(action).subscribe(() => this.actionExecutedEmitter.next(action));\n          });\n        }\n        break;\n      }\n      default: {\n        console.error('Unknown action');\n        break;\n      }\n    }\n  }\n\n  private getDialogRef(action: ConfigAction) {\n    const dialogRef = this.dialog.open(ActionModalComponent, {\n      disableClose: true,\n      data: action\n    });\n    return dialogRef.afterClosed().pipe(filter(result => !!result));\n  }\n\n  private openUrl(url: string) {\n    const win = window.open(url, '_blank');\n    win?.focus();\n  }\n\n}\n","<button mat-icon-button [matMenuTriggerFor]=\"menu\" aria-label=\"Show actions\">\n  <mat-icon>more_vert</mat-icon>\n</button>\n<mat-menu #menu=\"matMenu\" class=\"action-menu\">\n  @for (action of actions; track action) {\n    @if (action.type === ConfigAction.VIEW) {\n      <button mat-menu-item (click)=\"onActionClick(action)\">\n        <mat-icon>launch</mat-icon>\n        <span>{{'View' | translate}}</span>\n      </button>\n    } @else if (action.type === ConfigAction.SHARE) {\n      <button mat-menu-item [disabled]=\"!action.enabled\" (click)=\"onActionClick(action)\">\n        <mat-icon>share</mat-icon>\n        <span>{{'Share' | translate}}</span>\n      </button>\n    } @else if (action.type === ConfigAction.EDIT) {\n      <button mat-menu-item [disabled]=\"!action.enabled\" (click)=\"onActionClick(action)\">\n        <mat-icon>create</mat-icon>\n        <span>{{'Edit' | translate}}</span>\n      </button>\n    } @else if (action.type === ConfigAction.DUPLICATE) {\n      <button mat-menu-item [disabled]=\"!action.enabled\" (click)=\"onActionClick(action)\">\n        <mat-icon>filter_none</mat-icon>\n        <span>{{'Duplicate' | translate}}</span>\n      </button>\n    } @else if (action.type === ConfigAction.RENAME) {\n      <button mat-menu-item [disabled]=\"!action.enabled\" (click)=\"onActionClick(action)\">\n        <mat-icon>drive_file_rename_outline</mat-icon>\n        <span>{{'Rename' | translate}}</span>\n      </button>\n    } @else if (action.type === ConfigAction.DELETE) {\n      <button mat-menu-item [disabled]=\"!action.enabled\" (click)=\"onActionClick(action)\">\n        <mat-icon>delete</mat-icon>\n        <span>{{'Delete' | translate}}</span>\n      </button>\n    }\n  }\n</mat-menu>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\nimport { MatIcon } from '@angular/material/icon';\nimport { TranslatePipe } from '@ngx-translate/core';\n\n@Component({\n  selector: 'arlas-tool-confirm-modal-msg',\n  templateUrl: './confirm-modal.component.html',\n  styleUrls: ['./confirm-modal.component.scss'],\n  imports: [\n    MatDialogModule,\n    TranslatePipe,\n    MatIcon,\n    MatButtonModule\n  ]\n})\nexport class ConfirmModalComponent {\n  public data = inject<{ confirmMessage?: string; confirmHTMLMessage?: string; }>(MAT_DIALOG_DATA);\n}\n","<h2 mat-dialog-title>\n  <mat-icon class=\"confirm__icon\">warning</mat-icon>\n  {{ 'CAUTION' | translate }}\n</h2>\n<mat-dialog-content class=\"confirm__content\" [innerHTML]=\"data.confirmHTMLMessage\">\n  {{ data.confirmMessage | translate }}\n</mat-dialog-content>\n\n<mat-dialog-actions>\n  <button matButton=\"outlined\" [mat-dialog-close]=\"false\">{{ 'No' | translate }}</button>\n  <button matButton=\"filled\" color=\"warn\" [mat-dialog-close]=\"true\">{{ 'Yes' | translate }}</button>\n</mat-dialog-actions>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nexport class ArlasSearchField {\n\n  /**\n   * @description The field label\n   */\n  public label: string;\n  /**\n   * @description The type of the field.\n   */\n  public type: string;\n\n  public constructor(label: string, type: string) {\n    this.label = label;\n    this.type = type;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { Component, inject, Inject, Input, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatDivider, MatListModule, MatListOption, MatSelectionList } from '@angular/material/list';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { CollectionReferenceDescription, Filter } from 'arlas-api';\nimport { GetCollectionDisplayNamePipe } from 'arlas-web-components';\nimport { projType } from 'arlas-web-core';\nimport { DeviceDetectorService, OS } from 'ngx-device-detector';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../../services/authentification/authentification.service';\nimport {\n  ArlasCollaborativesearchService\n} from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\nimport { ArlasConfigService } from '../../services/startup/startup.service';\nimport { ThemeService } from '../../services/theme.service';\nimport { orderAlphabeticallyArlasSearchFields } from '../../tools/utils';\nimport { AdmonitionCardComponent } from '../admonition-card/admonition-card.component';\nimport { ArlasSearchField } from '../share/model/ArlasSearchField';\n\nexport const ARLAS_HITS_EXPORTER_VERSION = 2.2;\n\n@Component({\n  selector: 'arlas-download',\n  template: ''\n})\nexport class DownloadComponent {\n  private readonly dialog = inject(MatDialog);\n\n  @Input() public collections: string[] = [];\n\n  public openDialog() {\n    this.dialog.open(DownloadDialogComponent, { data: this.collections, width: '80vw' });\n  }\n}\n\n@Component({\n  selector: 'arlas-download-dialog',\n  templateUrl: './download-dialog.component.html',\n  styleUrls: ['./download-dialog.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  imports: [\n    MatStepperModule,\n    ReactiveFormsModule,\n    AdmonitionCardComponent,\n    TranslatePipe,\n    MatRadioModule,\n    MatDivider,\n    MatFormFieldModule,\n    MatSelectModule,\n    MatTooltipModule,\n    MatListModule,\n    MatIconModule,\n    MatButtonModule,\n    GetCollectionDisplayNamePipe,\n    MatDialogModule\n  ]\n})\nexport class DownloadDialogComponent implements OnInit {\n\n  public allFields = new Array<ArlasSearchField>();\n  public selectedFields = new Array<ArlasSearchField>();\n  public selectedSortableFields = new Array<ArlasSearchField>();\n  public selectedFieldString = '';\n\n  public filterUrl?: string;\n  public exportedTypeCommand?: string;\n  public authTypeCommand?: string;\n\n  public isCopied = false;\n\n  public exportTypeGroup = new FormGroup({\n    exportType: new FormControl('', Validators.required)\n  });\n  public paramFormGroup = new FormGroup({\n    availableFields: new FormControl('', Validators.required)\n  });\n  public collectionRef?: CollectionReferenceDescription;\n\n  public operatingSystems = ['Linux/Mac', 'Windows'];\n  public detectedOs = 'Linux/Mac';\n\n  public arlasHitsExporterVersion = ARLAS_HITS_EXPORTER_VERSION;\n  public collections;\n  public selectedCollection;\n  public serverUrl;\n  @ViewChild('selectedList', { static: false }) public selectionList?: MatSelectionList;\n\n  protected readonly themeService = inject(ThemeService);\n\n  public constructor(\n    @Inject(MAT_DIALOG_DATA) public data: string[],\n    private readonly collaborativeService: ArlasCollaborativesearchService,\n    private readonly configService: ArlasConfigService,\n    private readonly authService: AuthentificationService,\n    private readonly iamService: ArlasIamService,\n    private readonly settingsService: ArlasSettingsService,\n    private readonly deviceService: DeviceDetectorService,\n  ) {\n    this.collections = data;\n    this.selectedCollection = data[0];\n    this.serverUrl = this.configService.getValue('arlas.server').url;\n  }\n\n  public ngOnInit() {\n    if (this.deviceService.os() === OS.WINDOWS) {\n      this.detectedOs = 'Windows';\n    }\n\n    this.setCollectionField(this.selectedCollection);\n  }\n\n  public onSelectionChange(selectedOptionsList: SelectionModel<MatListOption>) {\n    this.selectedFields = new Array<ArlasSearchField>();\n    this.selectedFieldString = '';\n    selectedOptionsList.selected.forEach((option, index) => {\n      const field = option.getLabel().split('-');\n      this.selectedFields.push(new ArlasSearchField(field[0].trim(), field[1].trim()));\n      this.selectedFieldString += (index !== 0 ? ',' : '') + field[0].trim();\n    });\n  }\n\n  public collectionChange() {\n    this.selectedFields = new Array<ArlasSearchField>();\n    this.selectionList?.deselectAll();\n    this.setCollectionField(this.selectedCollection);\n  }\n\n  public setCollectionField(collection: string) {\n    this.collaborativeService.describe(collection).subscribe(\n      description => {\n        this.allFields = [];\n        this.collectionRef = description;\n        const fields = description.properties;\n        if (fields) {\n          Object.keys(fields).forEach(fieldName => {\n            this.getFieldProperties(fields, fieldName);\n          });\n          this.allFields.sort(orderAlphabeticallyArlasSearchFields);\n        }\n\n      },\n      error => {\n        this.collaborativeService.collaborationErrorBus.next(error);\n      });\n  }\n  /**\n   * Switches between dialog steps\n   * @param event The step index\n   */\n  public changeStep(event: StepperSelectionEvent) {\n    if (event.selectedIndex === 2) {\n      this.isCopied = false;\n      this.exportedTypeCommand = this.exportTypeGroup.value.exportType ?? undefined;\n      const filters = Array.from(this.collaborativeService.collaborations.values())\n        .filter(element => {\n          const f = element.filters.get(this.selectedCollection);\n          return f && f.length > 0;\n        })\n        .map(element => element.filters.get(this.selectedCollection)?.[0] as Filter);\n      this.filterUrl = this.collaborativeService.getUrl([projType.search, []], filters);\n\n      const token = this.getToken();\n      if (!!token) {\n        this.authTypeCommand = '--auth=token --token=' + token;\n      }\n    }\n  }\n\n  /**\n   * Get the good token according to user connection mode\n   * @returns {string | null}\n   * @protected\n   */\n  protected getToken() {\n    const authSettings = this.settingsService.getAuthentSettings();\n    const authMode = authSettings?.auth_mode ?? undefined;\n    const isAuthActivated = !!authSettings && !!authSettings.use_authent;\n    if(!isAuthActivated) {\n      return null;\n    }\n\n    if (authMode === 'iam') {\n      return this.iamService.getAccessToken();\n    } else {\n      return this.authService.accessToken;\n    }\n  }\n\n  public copyCommand(downloadCommand: HTMLTextAreaElement, downloadCommandWindows: HTMLTextAreaElement) {\n    if (this.detectedOs === 'Windows') {\n      this.copyTextToClipboard(downloadCommandWindows.value);\n    } else {\n      this.copyTextToClipboard(downloadCommand.value);\n    }\n  }\n\n  /**\n   * Copies a text in your clipboard\n   * @param text Text to copy\n   */\n  public copyTextToClipboard(text: string) {\n    const textArea = document.createElement('textarea');\n    textArea.value = text.trim();\n    document.body.appendChild(textArea);\n    textArea.select();\n    try {\n      this.isCopied = document.execCommand('copy');\n    } catch (err) {\n      this.isCopied = false;\n    }\n    document.body.removeChild(textArea);\n  }\n\n  private getFieldProperties(fieldList: any, fieldName: string, parentPrefix?: string) {\n    if (fieldList[fieldName].type === 'OBJECT') {\n      const subFields = fieldList[fieldName].properties;\n      if (subFields) {\n        Object.keys(subFields).forEach(subFieldName => {\n          this.getFieldProperties(subFields, subFieldName, (parentPrefix ? parentPrefix : '') + fieldName + '.');\n        });\n      }\n    } else {\n      this.allFields.push({ label: (parentPrefix ? parentPrefix : '') + fieldName, type: fieldList[fieldName].type });\n    }\n  }\n\n}\n","<mat-horizontal-stepper [linear]=\"true\" (selectionChange)=\"changeStep($event)\" class=\"download-stepper\" [class.dark-theme]=\"themeService.isDarkMode()\">\n  <mat-step [stepControl]=\"exportTypeGroup\">\n    <form [formGroup]=\"exportTypeGroup\">\n      <ng-template matStepLabel>{{'Type' | translate}}</ng-template>\n      <arlas-admonition-card [title]=\"'Important' | translate\">\n        {{'This tool allows you to get a docker command line to download your data' | translate}}.<br>\n        {{'Make sure you have' | translate}} <strong>docker</strong> {{'installed before continuing' | translate}}.\n      </arlas-admonition-card>\n      <mat-radio-group class=\"download-radio-group\" formControlName=\"exportType\">\n        <mat-radio-button [value]=\"'csv'\" class=\"download-radio-button\">{{ 'CSV' | translate}}\n        </mat-radio-button>\n        <mat-radio-button [value]=\"'json'\" class=\"download-radio-button\">{{ 'Json' | translate}}\n        </mat-radio-button>\n      </mat-radio-group>\n      <mat-divider class=\"download__divider\"></mat-divider>\n\n      <mat-dialog-actions>\n        <button matButton=\"filled\" color=\"primary\" matStepperNext class=\"download-stepper-button\" [disabled]=\"!exportTypeGroup.valid\">\n          {{ 'Next' | translate}}</button>\n      </mat-dialog-actions>\n    </form>\n  </mat-step>\n  <mat-step [stepControl]=\"paramFormGroup\">\n    <form [formGroup]=\"paramFormGroup\">\n      <ng-template matStepLabel>{{'Parameters' | translate}}</ng-template>\n\n      <mat-form-field>\n        <mat-label>{{ \"Collection\" | translate}}</mat-label>\n        <mat-select (selectionChange)=\"collectionChange()\" [(value)]=\"selectedCollection\">\n          @for (option of collections; track option) {\n            <mat-option [value]=\"option\" >\n              {{ option | getCollectionDisplayName | translate }}\n            </mat-option>\n          }\n        </mat-select>\n      </mat-form-field>\n\n\n      <div class=\"download-feature-block\">\n        <div class=\"download-title-list\">\n          <mat-label>{{'Available fields' | translate}}</mat-label>\n        </div>\n        <div style=\"flex:1;padding:0 7px;\">\n        </div>\n        <div class=\"download-title-list\">\n          <mat-label>{{'Selected fields' | translate}}</mat-label>\n        </div>\n      </div>\n      <div class=\"download-feature-block\">\n        <div style=\"max-height: 40vh;overflow:auto;flex:3\">\n          <mat-selection-list role=\"listbox\" formControlName=\"availableFields\" #selectedList\n            (selectionChange)=\"onSelectionChange(selectedList.selectedOptions)\">\n            @for (field of allFields; track field) {\n              <mat-list-option>\n                <p matLine title=\"{{ field.label }} - {{field.type}}\">\n                  {{ field.label }} - <span class=\"download-description\">{{field.type}}</span>\n                </p>\n              </mat-list-option>\n            }\n          </mat-selection-list>\n        </div>\n        <div class=\"download-feature-button\">\n          <button matButton=\"filled\" color=\"primary\" class=\"text-sm download-button\"\n            matTooltip=\"{{'Select All' | translate}}\" matTooltipPosition=\"above\"\n            (click)=\"selectedList.selectAll(); onSelectionChange(selectedList.selectedOptions)\">\n            &gt;&gt;\n          </button>\n          <br /><br />\n          <button matButton=\"filled\" color=\"accent\" class=\"text-sm download-button\"\n            matTooltip=\"{{'Remove All' | translate}}\"\n            (click)=\"selectedList.deselectAll();onSelectionChange(selectedList.selectedOptions)\">\n            &lt;&lt;\n          </button>\n        </div>\n\n        <div style=\"max-height:40vh;overflow:auto;flex:3\">\n          <mat-list role=\"list\">\n            @for (field of selectedFields; track field) {\n              <mat-list-item role=\"listitem\">\n                <p matLine title=\"{{ field.label }} - {{field.type}}\">\n                  {{ field.label }} - <span class=\"download-description\">{{field.type}}</span>\n                </p>\n              </mat-list-item>\n            } @empty {\n              <mat-list-item>{{'No item selected' | translate}}</mat-list-item>\n            }\n          </mat-list>\n        </div>\n      </div>\n      <mat-divider class=\"download__divider\"></mat-divider>\n\n      <div class=\"download-stepper-actions\">\n        <button matButton=\"outlined\" matStepperPrevious class=\"download-stepper-button\">{{ 'Back' | translate}}</button>\n        <button matButton=\"filled\" color=\"primary\" matStepperNext class=\"download-stepper-button\" [disabled]=\"!paramFormGroup.valid\">\n          {{ 'Next' | translate}}</button>\n      </div>\n    </form>\n  </mat-step>\n  <mat-step>\n    <ng-template matStepLabel>{{ 'Command line' | translate}}</ng-template>\n    <div class=\"download-block\">\n      <mat-form-field appearance=\"outline\">\n        <mat-label>{{ 'Target OS' | translate}}</mat-label>\n        <mat-select [(value)]=\"detectedOs\" #osselection (selectionChange)=\"isCopied = false\">\n          @for (opt of operatingSystems; track opt) {\n            <mat-option [value]=\"opt\">\n              {{opt}}\n            </mat-option>\n          }\n        </mat-select>\n      </mat-form-field>\n      <textarea [hidden]=\"osselection.value === 'Windows'\" class=\"download-box\" #downloadCommand>docker run \\\n        -it \\\n        --mount dst=/output,src=\"$PWD\",type=bind \\\n        --rm \\\n        gisaia/arlas-hits-exporter:{{arlasHitsExporterVersion}} \\\n        --search_url=\"{{serverUrl}}/explore/{{selectedCollection}}/_search?size=9999&sort={{collectionRef?.params?.id_path}}&{{filterUrl}}\" \\\n        --include={{selectedFieldString}} \\\n        --format={{exportedTypeCommand}} \\\n        {{authTypeCommand}}\n      </textarea>\n      <textarea [hidden]=\"osselection.value !== 'Windows'\" class=\"download-box\" #downloadCommandWindows>docker run \\\n        -it \\\n        --mount dst=/output,src=\"%cd%\",type=bind \\\n        --rm gisaia/arlas-hits-exporter:{{arlasHitsExporterVersion}} \\\n        --search_url=\"{{serverUrl}}/explore/{{selectedCollection}}/_search?size=9999&sort={{collectionRef?.params?.id_path}}&{{filterUrl}}\" \\\n        --include={{selectedFieldString}} \\\n        --format={{exportedTypeCommand}} \\\n        {{authTypeCommand}}\n      </textarea>\n    </div>\n    <mat-divider class=\"download__divider\"></mat-divider>\n    <div class=\"download-stepper-actions\">\n      <button matButton=\"outlined\" matStepperPrevious class=\"download-stepper-button\">{{ 'Back' | translate}}</button>\n      <button matButton=\"filled\" color=\"primary\" class=\"download-stepper-button\"\n        [class.btn-success]=\"isCopied\" (click)=\"copyCommand(downloadCommand, downloadCommandWindows)\">\n        <mat-icon [class.hide-icon]=\"!isCopied\">check</mat-icon>\n        <span>{{ (isCopied ? 'Copied' : 'Copy') | translate}}</span>\n      </button>\n    </div>\n  </mat-step>\n</mat-horizontal-stepper>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Extend } from './model';\nimport { Guid } from '../../tools/utils';\nimport { ArlasLocalDatabase } from '../../tools/arlasLocalDatabase';\n\nexport class ExtendLocalDatabase extends ArlasLocalDatabase<Extend> {\n\n\n  public constructor() {\n    super('extend');\n  }\n\n  public init(extend: Extend): Extend {\n    const initExtend = {\n      id: extend.id,\n      date: new Date(extend.date),\n      name: extend.name,\n      geometry: extend.geometry,\n      private: extend.private\n    };\n    return initExtend;\n  }\n\n  public createExtend(name: string, geometry: any, visibility: boolean = false, date?: Date, id?: string): Extend {\n    let uid = '';\n    let extendDate: Date;\n\n    if (id) {\n      uid = id;\n    } else {\n      const guid = new Guid();\n      uid = guid.newGuid();\n    }\n    if (date) {\n      extendDate = new Date(date);\n    } else {\n      extendDate = new Date();\n    }\n    const extend: Extend = {\n      id: uid,\n      date: extendDate,\n      name: name,\n      geometry: geometry,\n      private: visibility\n    };\n    return extend;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Extend } from './model';\nimport { Guid } from '../../tools/utils';\nimport { ArlasPersistenceDatabase } from '../../tools/arlasPersistenceDatabase';\nimport { PersistenceService } from '../persistence/persistence.service';\n\nexport class ExtendPersistenceDatabase extends ArlasPersistenceDatabase<Extend> {\n\n\n  public constructor( public persistenceService: PersistenceService) {\n    super('extend', persistenceService);\n  }\n\n  public init(extend: Extend): Extend {\n    const initExtend = {\n      id: extend.id,\n      date: new Date(extend.date),\n      name: extend.name,\n      geometry: extend.geometry,\n      private: extend.private\n    };\n    return initExtend;\n  }\n\n  public createExtend(name: string, geometry: any, visibility: boolean = false, date?: Date, id?: string): Extend {\n    let uid = '';\n    let extendDate: Date;\n\n    if (id) {\n      uid = id;\n    } else {\n      const guid = new Guid();\n      uid = guid.newGuid();\n    }\n    if (date) {\n      extendDate = new Date(date);\n    } else {\n      extendDate = new Date();\n    }\n    const extend: Extend = {\n      id: uid,\n      date: extendDate,\n      name: name,\n      geometry: geometry,\n      private: visibility\n    };\n    return extend;\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Observable, throwError } from 'rxjs';\nimport { AuthentificationService } from '../authentification/authentification.service';\nimport { PersistenceService } from '../persistence/persistence.service';\nimport { ArlasStartupService } from '../startup/startup.service';\nimport { ExtendLocalDatabase } from './extendLocalDatabase';\nimport { ExtendPersistenceDatabase } from './extendPersistenceDatabase';\nimport { Extend } from './model';\n\n@Injectable()\nexport class ArlasExtendService {\n  public dataBase?: ExtendLocalDatabase | ExtendPersistenceDatabase;\n  public extendMap: Map<string, Extend> = new Map<string, Extend>();\n\n  public constructor(\n    private arlasStartupService: ArlasStartupService,\n    private authentService: AuthentificationService,\n    private persistenceService: PersistenceService) {\n    if (this.arlasStartupService.shouldRunApp && !this.arlasStartupService.emptyMode) {\n      if (this.persistenceService.isAvailable && this.authentService.hasValidAccessToken() && this.authentService.hasValidIdToken()) {\n        this.dataBase = new ExtendPersistenceDatabase(this.persistenceService);\n        this.dataBase.dataChange.subscribe(() => {\n          this.extendMap = this.dataBase?.storageObjectMap ?? new Map();\n        });\n      } else {\n        this.dataBase = new ExtendLocalDatabase();\n        this.dataBase.dataChange.subscribe(() => {\n          this.extendMap = this.dataBase?.storageObjectMap ?? new Map();\n        });\n      }\n    }\n  }\n\n  public init(extend: Extend): Extend {\n    const initExtend = {\n      id: extend.id,\n      date: new Date(extend.date),\n      name: extend.name,\n      geometry: extend.geometry,\n      private: extend.private\n    };\n    return initExtend;\n  }\n\n  /**\n * List all bookmark for the user to update dataBase\n */\n  public listExtends(size: number, pageNumber: number): Observable<void> {\n    return (this.dataBase as ExtendPersistenceDatabase).list(size, pageNumber, 'desc');\n  }\n\n  public setPage(size: number, pageNumber: number) {\n    (this.dataBase as ExtendPersistenceDatabase).setPage({ size: size, number: pageNumber });\n  }\n\n  public addExtend(name: string, geometry: any): Observable<void>{\n    if (!this.dataBase) {\n      return throwError(() => new Error('No database defined for ExtendService'));\n    }\n    const newExtend = this.dataBase.createExtend(name, geometry);\n    return this.dataBase.add(newExtend);\n  }\n\n  public removeExtend(id: string): Observable<void> {\n    if (this.dataBase) {\n      return this.dataBase.remove(id);\n    } else {\n      return throwError(() => new Error('No database defined for ExtendService'));\n    }\n  }\n\n  public getExtendById(id: string) {\n    return Array.from(this.extendMap.values()).find(extend => extend.id === id);\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { DatePipe } from '@angular/common';\nimport { Component, Output } from '@angular/core';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatPaginatorModule, PageEvent } from '@angular/material/paginator';\nimport { MatTableModule } from '@angular/material/table';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Subject } from 'rxjs';\nimport { ArlasExtendService } from '../../services/extend/extend.service';\nimport { ExtendPersistenceDatabase } from '../../services/extend/extendPersistenceDatabase';\nimport { Extend } from '../../services/extend/model';\nimport { ArlasDataSource } from '../../tools/arlasDataSource';\n\n@Component({\n  selector: 'arlas-extend',\n  templateUrl: './extend.component.html',\n  styleUrls: ['./extend.component.scss'],\n  imports: [\n    MatTableModule,\n    TranslatePipe,\n    MatCheckboxModule,\n    MatIconModule,\n    MatPaginatorModule,\n    DatePipe\n  ]\n})\nexport class ExtendComponent {\n\n  public extends: ArlasDataSource<Extend> | Extend[] = [];\n  public columnsToDisplay = ['checked', 'name', 'date', 'actions'];\n  public itemsCheck: Array<string> = new Array<string>();\n\n  public resultsLength = 0;\n  public pageSize = 10;\n  public pageNumber = 1;\n\n  public isPersistenceActive = false;\n\n  @Output() public actions: Subject<{ action: string; id: string; geometry?: any; }> = new Subject<any>();\n\n  public constructor(\n    private extendService: ArlasExtendService\n  ) {\n    // Init component with data from persistence server, if defined and server is reachable\n    if (this.extendService.dataBase instanceof ExtendPersistenceDatabase) {\n      this.isPersistenceActive = true;\n      this.extendService.setPage(this.pageSize, this.pageNumber);\n      this.getExtendsList();\n      (this.extendService.dataBase as ExtendPersistenceDatabase).dataChange\n        .subscribe((data: { total: number; items: Extend[]; }) => {\n          this.resultsLength = data.total;\n          this.extends = data.items;\n        });\n    } else if (this.extendService.dataBase) {\n      this.extends = new ArlasDataSource(this.extendService.dataBase);\n    }\n  }\n\n  public getExtendsList() {\n    this.extendService.listExtends(this.pageSize, this.pageNumber).subscribe(()=>{},(e)=> console.error(e));\n  }\n\n  public pageChange(pageEvent: PageEvent) {\n    this.pageNumber = pageEvent.pageIndex;\n    this.pageSize = pageEvent.pageSize;\n    this.extendService.setPage(this.pageSize, this.pageNumber);\n    this.getExtendsList();\n  }\n\n  public selectExtend(event: { checked: boolean; }, id: string) {\n    if (event.checked) {\n      this.itemsCheck.push(id);\n    } else {\n      const index = this.itemsCheck.indexOf(id, 0);\n      if (index > -1) {\n        this.itemsCheck.splice(index, 1);\n      }\n    }\n  }\n\n  public viewExtend(id: string) {\n    const extend = this.extendService.getExtendById(id);\n    this.actions.next({ action: 'view', id: id, geometry: extend?.geometry });\n\n  }\n\n  public removeExtend(id: string) {\n    this.extendService.removeExtend(id).subscribe(()=>{\n      this.selectExtend({ checked: false }, id);\n      this.actions.next({ action: 'remove', id: id });\n    },(e)=> console.error(e));\n  }\n}\n","<mat-table [dataSource]=\"extends\" class=\"extend-table-items\">\n  <ng-container matColumnDef=\"checked\">\n    <mat-header-cell *matHeaderCellDef> # </mat-header-cell>\n    <mat-cell *matCellDef=\"let extend\">\n      <mat-checkbox class=\"extend-check\" (change)=\"selectExtend($event, extend.id)\"></mat-checkbox>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"actions\">\n    <mat-header-cell *matHeaderCellDef> {{ 'Actions' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let extend\">\n      <mat-icon class=\"extend-icons-action extend-icons-action-view\" title=\"{{ 'View' | translate }}\" (click)=\"viewExtend(extend.id)\">\n        remove_red_eye\n      </mat-icon>\n      <mat-icon class=\"extend-icons-action extend-icons-action-delete\" title=\"{{ 'Remove' | translate }}\" (click)=\"removeExtend(extend.id)\">\n        delete\n      </mat-icon>\n    </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"date\">\n    <mat-header-cell *matHeaderCellDef> {{ 'Date' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let extend\"> {{extend.date | date: 'dd/MM/yyyy HH:mm:ss'}} </mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"name\">\n    <mat-header-cell *matHeaderCellDef> {{ 'Name' | translate }} </mat-header-cell>\n    <mat-cell *matCellDef=\"let extend\">{{extend.name}}</mat-cell>\n  </ng-container>\n\n  <mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></mat-header-row>\n  <mat-row *matRowDef=\"let myRowData; columns: columnsToDisplay\"></mat-row>\n</mat-table>\n\n@if (isPersistenceActive) {\n  <mat-paginator [pageIndex]=\"pageNumber\"\n    [pageSize]=\"pageSize\"\n    [length]=\"resultsLength\"\n    [pageSizeOptions]=\"[5, 10, 15, 20]\"\n    [showFirstLastButtons]=true\n    (page)=\"pageChange($event)\"\n  ></mat-paginator>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { Component, EventEmitter, Input, Output, input } from '@angular/core';\nimport { MatIcon } from '@angular/material/icon';\nimport { TranslatePipe } from '@ngx-translate/core';\n\n@Component({\n  selector: 'arlas-filter-shortcut-chip',\n  templateUrl: './chip.component.html',\n  styleUrls: ['./chip.component.scss'],\n  imports: [\n    MatIcon,\n    TranslatePipe\n  ]\n})\nexport class FilterShortcutChipComponent {\n  public label = input.required<string>();\n  @Input() public hide = false;\n  @Input() public shortenValues = true;\n  @Output() public clearEmitter: EventEmitter<string> = new EventEmitter();\n\n  public clear(event: Event) {\n    event.stopPropagation();\n    if (!this.hide) {\n      this.clearEmitter.emit(this.label().replace('≠', ''));\n    }\n  }\n\n}\n","<div class=\"container\" [class.hide]=\"hide\" [class.container--long-text]=\"!shortenValues\" (click)=\"$event.stopPropagation()\">\n    <div class=\"label\" [class.label--no-wrap]=\"!shortenValues\">{{ label() | translate }}</div>\n    <mat-icon class=\"clear\" (click)=\"clear($event)\">clear</mat-icon>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { animate, state, style, transition, trigger } from '@angular/animations';\nimport { Component, DestroyRef, Input, OnInit, inject, input } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIcon } from '@angular/material/icon';\nimport { DateTimeAdapter, OWL_DATE_TIME_LOCALE } from '@danielmoncada/angular-datetime-picker';\nimport { MomentDateTimeAdapter } from '@danielmoncada/angular-datetime-picker-moment-adapter';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Expression } from 'arlas-api';\nimport { ChartType, DataType, HistogramParams, HistogramUtils } from 'arlas-d3';\nimport { HistogramContributor } from 'arlas-web-contributors';\nimport { Collaboration } from 'arlas-web-core';\nimport { ArlasCollaborativesearchService } from '../../../services/collaborative-search/arlas.collaborative-search.service';\nimport { FilterShortcutChipComponent } from '../chip/chip.component';\n\n@Component({\n  selector: 'arlas-shortcut-filters-handler',\n  templateUrl: './filters-handler.component.html',\n  styleUrls: ['./filters-handler.component.scss'],\n  animations: [\n    trigger('fadeInOut', [\n      state('void', style({ opacity: 0 })), // Initial state when element is not present\n      state('*', style({ opacity: 1 })), // Final state when element is present\n      transition(':enter', animate('500ms ease-in-out')), // Animation duration and easing\n    ])\n  ],\n  providers: [\n    { provide: DateTimeAdapter, useClass: MomentDateTimeAdapter, deps: [OWL_DATE_TIME_LOCALE] }\n  ],\n  imports: [\n    MatIcon,\n    FilterShortcutChipComponent,\n    MatButtonModule\n  ]\n})\nexport class ShortcutFiltersHandlerComponent implements OnInit {\n  /**\n   * @Input : Angular\n   * @description The contributor Id of the shortcut\n   */\n  public contributorId = input.required<string>();\n\n  /**\n   * @Input : Angular\n   * @description The type of widget represented by the shortcut. can be 'powerbars' or 'histogram'.\n   */\n  public widgetType = input.required<string>();\n\n  /**\n   * @Input : Angular\n   * @description Whether to display the value of the first filter. It will allow the user to only see the values by clicking the +X chip.\n   */\n  @Input() public displayFilterFirstValue = false;\n\n  /**\n   * @Input : Angular\n   * @description The unit of the histogram values\n   */\n  @Input() public histogramUnit: string | undefined;\n\n  /**\n   * @Input : Angular\n   * @description The type of data of the histogram. It can have the same values as a non-shortcut histogram.\n   */\n  @Input() public histogramDatatype: string | undefined;\n\n  /**\n   * @Input : Angular\n   * @description The format to use for the date ticks of the shortcut's histogram\n   */\n  @Input() public ticksDateFormat: string | undefined;\n\n  public histogramParams!: HistogramParams;\n\n  public showMore = false;\n  public moreClicked = false;\n\n  public labels: string[] = [];\n  private rawLabels: string[] = [];\n  public firstLabel: string | undefined;\n\n  private readonly destroyRef = inject(DestroyRef);\n\n  public constructor(\n    private readonly collaborativeSearchService: ArlasCollaborativesearchService,\n    private readonly translate: TranslateService\n  ) { }\n\n  public ngOnInit(): void {\n    this.setHistogramParams();\n    // Check if collaboration already occured (useful when moving the shortcut from a list to another)\n    const collaboration = this.collaborativeSearchService.getCollaboration(this.contributorId());\n    this.checkCollaboration(collaboration);\n\n    // Check if collaboration occurs during the lifetime of the shortcut\n    this.collaborativeSearchService.collaborationBus\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe(collaborationBus => {\n        const collaboration = this.collaborativeSearchService.getCollaboration(this.contributorId());\n        this.checkCollaboration(collaboration);\n      });\n\n  }\n\n  public showFilters(clickEvent: Event) {\n    clickEvent.stopPropagation();\n    this.moreClicked = !this.moreClicked;\n  }\n\n  public clearFilter(label: string, idx: number) {\n    this.labels = this.labels.map(l => l.replace('≠', '')).filter(l => l !== label);\n    this.rawLabels.splice(idx, 1);\n\n    if (this.labels.length > 0) {\n      this.firstLabel = this.labels[0];\n      if (this.widgetType() === 'powerbars' || this.widgetType() === 'metricstable') {\n        this.showMore = !this.displayFilterFirstValue || this.labels.length > 1;\n        /** hide list when there is one label left */\n        if (this.displayFilterFirstValue && this.labels.length <= 1) {\n          this.moreClicked = false;\n        }\n      } else {\n        this.showMore = !this.displayFilterFirstValue;\n      }\n\n      const collaboration = this.collaborativeSearchService.getCollaboration(this.contributorId());\n      if (collaboration) {\n        const filters = collaboration.filters.values().next().value;\n        if (filters && filters.length > 0) {\n          const filterF = filters[0].f?.[0];\n          if (filterF && filterF.length > 0) {\n            const expression = filterF[0];\n            expression.value = this.rawLabels.join(',');\n            this.collaborativeSearchService.setFilter(this.contributorId(), collaboration);\n          }\n        }\n      }\n    } else {\n      this.firstLabel = undefined;\n      this.labels = [];\n      this.collaborativeSearchService.removeFilter(this.contributorId());\n    }\n  }\n\n  private checkCollaboration(collaboration: Collaboration | undefined): void {\n    this.firstLabel = undefined;\n    this.labels = [];\n\n    if (collaboration) {\n      const filters = collaboration.filters.values().next().value;\n      if (filters && filters.length > 0) {\n        const filterF = filters[0].f?.[0];\n        if (filterF && filterF.length > 0) {\n          const expression = filterF[0];\n          this.setLabels(expression);\n        }\n      }\n    } else {\n      this.showMore = false;\n      this.moreClicked = false;\n    }\n  }\n\n  private setLabels(expression: Expression) {\n    this.rawLabels = expression.value.split(',');\n\n    if (this.widgetType() === 'powerbars' || this.widgetType() === 'metricstable') {\n      this.labels = expression.value.split(',');\n      if (expression.op === Expression.OpEnum.Ne) {\n        this.labels = this.labels.map(l => '≠' + l);\n      }\n      if (this.labels && this.labels.length > 0) {\n        this.firstLabel = this.labels[0];\n        this.showMore = !this.displayFilterFirstValue || this.labels.length > 1;\n      }\n    } else {\n      expression.value.split(',')\n        .map(interval => interval.replace('[', '').replace(']', ''))\n        .forEach(interval => {\n          const startEnd = interval.split('<');\n          if (startEnd.length !== 2) {\n            // Should never happen since ARLAS builds the intervals properly\n            console.error('Interval is badly constructed: ' + startEnd);\n          } else {\n            this.labels.push(this.histogramSelectionToLabel(startEnd));\n          }\n        });\n\n      this.showMore = !this.displayFilterFirstValue;\n    }\n\n    if (this.labels && this.labels.length > 0) {\n      this.firstLabel = this.labels[0];\n    }\n  }\n\n  private setHistogramParams() {\n    const contributor = this.collaborativeSearchService.registry.get(this.contributorId()) as HistogramContributor;\n\n    this.histogramParams = new HistogramParams(this.contributorId());\n    this.histogramParams.chartType = ChartType.bars;\n    this.histogramParams.useUtc = contributor.useUtc;\n    this.histogramParams.dataType = this.histogramDatatype === 'time' ? DataType.time : DataType.numeric;\n\n    if (this.ticksDateFormat) {\n      this.histogramParams.valuesDateFormat = this.ticksDateFormat;\n    }\n  }\n\n  private histogramSelectionToLabel(startEnd: Array<string>) {\n    let label: string;\n    if (this.histogramDatatype === 'time') {\n      // Truncate the hours since this is a shortcut\n      const start = HistogramUtils.toString(new Date(+startEnd[0]), this.histogramParams).slice(0, -6);\n      const end = HistogramUtils.toString(new Date(+startEnd[1]), this.histogramParams).slice(0, -6);\n\n      label = `${start} - ${end}`;\n    } else {\n      // If the number is small, truncate it to only have the first two digits\n      const start = HistogramUtils.numberToShortValue(+startEnd[0], 2);\n      const end = HistogramUtils.numberToShortValue(+startEnd[1], 2);\n\n      label = `${start} ${this.translate.instant('to')} ${end}`;\n      if (this.histogramUnit) {\n        label += ' ' + this.histogramUnit;\n      }\n    }\n\n    return label;\n  }\n\n}\n","<div class=\"container\">\n  @if (!!firstLabel && displayFilterFirstValue) {\n    <arlas-filter-shortcut-chip\n      [@fadeInOut]\n      [hide]=\"moreClicked\"\n      [label]=\"firstLabel\"\n      [shortenValues]=\"!histogramDatatype\"\n      (clearEmitter)=\"clearFilter($event, 0)\"></arlas-filter-shortcut-chip>\n  }\n  @if (showMore) {\n    <button mat-icon-button class=\"more\" [@fadeInOut] [class.more--expanded]=\"moreClicked\" (click)=\"showFilters($event)\">\n      @if (moreClicked) {\n        <mat-icon [@fadeInOut] class=\"collapse\">expand_less</mat-icon>\n      } @else {\n        <span [@fadeInOut]>{{displayFilterFirstValue ? (labels.length - 1) : labels.length}}</span>\n      }\n    </button>\n  }\n  @if (moreClicked) {\n    <div class=\"list\" [@fadeInOut]>\n      @for (label of labels; track label) {\n        <div class=\"filter\">\n          <arlas-filter-shortcut-chip\n            [label]=\"label\"\n            [shortenValues]=\"!histogramDatatype\"\n            (clearEmitter)=\"clearFilter($event, $index)\"\n          ></arlas-filter-shortcut-chip>\n        </div>\n      }\n    </div>\n  }\n</div>","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, EventEmitter, Input, input, OnInit, Output } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Contributor, OperationEnum } from 'arlas-web-core';\nimport {\n  ArlasCollaborativesearchService\n} from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { SpinnerOptions } from '../../tools/utils';\nimport { DEFAULT_SPINNER_OPTIONS } from '../progress-spinner/progress-spinner.component';\nimport { WidgetComponent } from '../widget/widget.component';\nimport { FilterShortcutConfiguration } from './filter-shortcut.utils';\nimport { ShortcutFiltersHandlerComponent } from './filters-handler/filters-handler.component';\n\n@Component({\n  selector: 'arlas-filter-shortcut',\n  templateUrl: './filter-shortcut.component.html',\n  styleUrls: ['./filter-shortcut.component.scss'],\n  imports: [\n    WidgetComponent,\n    ShortcutFiltersHandlerComponent,\n    TranslatePipe,\n    MatIconModule\n  ]\n})\nexport class FilterShortcutComponent implements OnInit {\n\n  /**\n   * @Input : Angular\n   * @description Configuration of the shortcut to display\n  */\n  public shortcut = input.required<FilterShortcutConfiguration>();\n\n  /**\n   * @Input : Angular\n   * @description Width of the shortcut when opened\n   */\n  @Input() public shortcutWidth = 250;\n\n  /**\n   * @Input : Angular\n   * @description Height of the chart contained in the shortcut\n   */\n  @Input() public chartHeight = 90;\n\n  /**\n   * @Input : Angular\n   * @description Whether to display the value of the first filter.\n   * If false, it will allow the user to only see the values by clicking the chip.\n   */\n  @Input() public displayFilterFirstValue = true;\n\n  /**\n   * @Input : Angular\n   * @description Whether the shortcut is opened and displays its widget\n   */\n  @Input() public isOpen = false;\n\n  /**\n   * @Input : Angular\n   * @description Spinner options when data is loading\n   */\n  @Input() public spinnerOptions: SpinnerOptions = {\n    color: DEFAULT_SPINNER_OPTIONS.color,\n    diameter: (DEFAULT_SPINNER_OPTIONS.diameter ?? 0) / 2,\n    strokeWidth: DEFAULT_SPINNER_OPTIONS.strokeWidth\n  };\n\n  /**\n   * @Output : Angular\n   * @description Event emitted when the shortcut is opened or closed\n   */\n  @Output() public isOpenChange = new EventEmitter<boolean>();\n\n  public inputs: any;\n  public histogramUnit?: string;\n  public histogramDatatype?: string;\n\n  public constructor(\n    private readonly collaborativeSearchService: ArlasCollaborativesearchService\n  ) { }\n\n  public ngOnInit(): void {\n    if (this.isOpen) {\n      this.activateContributor();\n    }\n    this.inputs = { ...this.shortcut().component?.input };\n    this.setHistogramInput();\n    this.setPowerbarsInput();\n  }\n\n  public toggle() {\n    this.isOpen = !this.isOpen;\n    this.isOpenChange.next(this.isOpen);\n    if (this.isOpen) {\n      this.triggerContributorCollaboration();\n    }\n  }\n\n  private activateContributor(): Contributor | undefined {\n    const contributorId = this.shortcut().component?.contributorId;\n    if (contributorId) {\n      const contributor = this.collaborativeSearchService.registry.get(contributorId);\n      if (contributor) {\n        contributor.updateData = true;\n      }\n      return contributor;\n    }\n\n    return undefined;\n  }\n\n  private triggerContributorCollaboration() {\n    const c = this.activateContributor();\n    c?.updateFromCollaboration({\n      id: c.linkedContributorId,\n      operation: OperationEnum.add,\n      all: false\n    });\n  }\n\n  private setHistogramInput() {\n    if (this.shortcut().component) {\n      this.histogramUnit = this.inputs['xUnit'];\n      this.histogramDatatype = this.inputs['dataType'];\n      this.inputs['showXTicks'] = false;\n      this.inputs['showYTicks'] = false;\n      this.inputs['showXLabels'] = false;\n      this.inputs['showYLabels'] = false;\n      this.inputs['chartWidth'] = this.shortcutWidth;\n      this.inputs['chartHeight'] = this.chartHeight;\n    }\n  }\n\n  private setPowerbarsInput() {\n    if (this.shortcut().component) {\n      this.inputs['groupSelections'] = false;\n      this.inputs['selectWithCheckbox'] = true;\n\n    }\n  }\n}\n","@let component = shortcut().component;\n\n@if (component) {\n  <div class=\"container\" id=\"{{'shortcut-' +  shortcut().uuid}}\">\n    <section #title class=\"title\" [class.open_title]=\"isOpen\" (click)=\"toggle()\"\n      [style.min-width.px]=\"shortcutWidth / 2\">\n      <div class=\"text\">{{shortcut().title | translate}}</div>\n      <div class=\"actions\">\n        <arlas-shortcut-filters-handler\n          [contributorId]=\"component.contributorId\"\n          [widgetType]=\"component.componentType\"\n          [histogramDatatype]=\"histogramDatatype\"\n          [histogramUnit]=\"histogramUnit\"\n          [displayFilterFirstValue]=\"displayFilterFirstValue\"\n        ></arlas-shortcut-filters-handler>\n        <mat-icon class=\"chevron\">{{isOpen ? 'expand_less' : 'expand_more'}}</mat-icon>\n      </div>\n    </section>\n\n    @if (isOpen) {\n      <div class=\"separator\"></div>\n\n      @let titleWidth = title.getBoundingClientRect().width;\n      <section class=\"content\" [style.width.px]=\"titleWidth > shortcutWidth + 10 ? titleWidth - 10 : shortcutWidth\">\n        <arlas-tool-widget style=\"width:100%\"\n          id=\"{{'shortcut-widget-' +  shortcut().uuid}}\"\n          [componentType]=\"component.componentType\"\n          [contributorId]=\"component.contributorId\"\n          [componentParams]=\"inputs\" [groupLength]=\"1\" [position]=\"0\"\n          [noDetail]=\"true\" [spinnerOptions]=\"spinnerOptions\"\n        ></arlas-tool-widget>\n      </section>\n    }\n  </div>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { animate, state, style, transition, trigger } from '@angular/animations';\nimport {\n  ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnChanges,\n  Output, Pipe, PipeTransform, SimpleChanges, ViewEncapsulation\n} from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { CollectionReferenceParameters } from 'arlas-api';\nimport { ArlasColorService, FormatNumberPipe } from 'arlas-web-components';\nimport { Collaboration, Contributor } from 'arlas-web-core';\nimport { Subject, take, takeUntil } from 'rxjs';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasCollectionService } from '../../services/collection/arlas-collection.service';\nimport { ArlasConfigService, ArlasStartupService } from '../../services/startup/startup.service';\nimport { CollectionCount, ZoomToDataStrategy } from '../../tools/utils';\nimport { isShortcutID } from '../filter-shortcut/filter-shortcut.utils';\n\n@Pipe({ name: 'getContributorLabel' })\nexport class GetContributorLabelPipe implements PipeTransform {\n  public transform(value: string, registry: Map<string, Contributor>): string {\n    let label = registry.get(value)?.getFilterDisplayName();\n    if (label !== undefined && label !== '') {\n      const labelSplited = label.split('<=');\n      if (labelSplited.length === 3) {\n        label = labelSplited[1].trim();\n      }\n      return label;\n    } else {\n      return '';\n    }\n  }\n}\n\n@Pipe({ name: 'getColorFilter' })\nexport class GetColorFilterPipe implements PipeTransform {\n  public transform(value: string, type: string, collaborationsMap: Map<string, Collaboration>): string | undefined {\n    const collaboration = collaborationsMap.get(value);\n    if (type === 'color') {\n      return collaboration?.enabled ? '#000' : '#BDBDBD';\n    } else if (type === 'background') {\n      return '#FFF';\n    }\n  }\n}\n\n@Pipe({ name: 'getGlobalColorFilter' })\nexport class GetGlobalColorFilterPipe implements PipeTransform {\n  public transform(value: string, type: string, color: string,\n    backgroundColor: string, collaborationsMap: Map<string, Collaboration>\n  ): string | undefined {\n    const collaboration = collaborationsMap.get(value);\n    if (type === 'color') {\n      return collaboration?.enabled ? color : 'inherit';\n    } else if (type === 'background') {\n      return collaboration?.enabled ? backgroundColor : 'inherit';\n    }\n  }\n}\n\n@Pipe({ name: 'getCollaborationIcon' })\nexport class GetCollaborationIconPipe implements PipeTransform {\n  public transform(value: string, contributorsIcons: Map<string, string>): string | undefined {\n    return contributorsIcons.get(value);\n\n  }\n}\n\n@Pipe({ name: 'isCollabOnCollection' })\nexport class IsCollabOnCollectionPipe implements PipeTransform {\n  public transform(value: string, collection: string, contributors: Map<string, Contributor>) {\n    const contributor = contributors.get(value);\n    return contributor && contributor.collections.map(c => c.collectionName).includes(collection) && value !== 'timeline';\n  }\n}\n\n@Component({\n  selector: 'arlas-filter',\n  templateUrl: './filters.component.html',\n  styleUrls: ['./filters.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  animations: [\n    trigger('fadeInOut', [\n      state('void', style({ opacity: 0 })), // Initial state when element is not present\n      state('*', style({ opacity: 1 })), // Final state when element is present\n      transition(':enter', animate('500ms ease-in-out')), // Animation duration and easing\n      transition(':leave', animate('500ms ease-in-out'))\n    ])\n  ],\n  imports: [\n    MatChipsModule,\n    FormatNumberPipe,\n    MatTooltipModule,\n    MatIconModule,\n    MatButtonModule,\n    IsCollabOnCollectionPipe,\n    GetGlobalColorFilterPipe,\n    GetContributorLabelPipe,\n    TranslatePipe,\n    GetCollaborationIconPipe\n  ]\n})\nexport class FiltersComponent implements OnChanges {\n\n  /**\n   * @Input : Angular\n   * @description Background color of the filters chips\n   */\n  @Input() public backgroundColorFilter = 'inherit';\n  /**\n    * @Input : Angular\n    * @description Color of the filters icon\n    */\n  @Input() public colorFilter = 'inherit';\n\n  /**\n   * @Input : Angular\n   * @description Contributors identifier array which will be ignored from the filter summary\n   */\n  @Input() public ignoredContributors = new Array<string>();\n\n  /**\n   * @Input : Angular\n   * @description Map of collectionName, collection params. This input allows us to verify if the collection has a centroid path and\n   * therefore propose or not the 'Zoom to Data' button\n   */\n  @Input() public collectionToDescription = new Map<string, CollectionReferenceParameters>();\n\n  /**\n   * @Input : Angular\n   * @description Specifies which space in pixels is available to display the collection counts,\n   * in order to hide the one that would overflow. If not set, this behavior is not put in place.\n   */\n  @Input() public availableSpace: number | undefined;\n\n  /**\n   * @Input : Angular\n   * @description Spacing used between collection count elements.\n   * Used to compute how much space is available for the counts.\n   */\n  @Input() public spacing = 5;\n\n  /**\n   * @Input : Angular\n   * @description Whether the zoom to data icon is displayed or not\n   */\n  @Input() public showZoomToData = true;\n\n  /**\n   * @Input : Angular\n   * @description Type of zoom to data\n   */\n  @Input() public zoomToStrategy: ZoomToDataStrategy | undefined;\n\n  /**\n   * @Output : Angular\n   * @description This output emit contributor id  on click on filter chip\n   */\n  @Output() public clickOnFilter: Subject<string> = new Subject<string>();\n\n  /**\n   * @Output : Angular\n   * @description This output emits the order of zooming on the extent of the given collection name\n   */\n  @Output() public zoomEvent: Subject<string> = new Subject<string>();\n\n\n  public collaborations: Set<string> = new Set<string>();\n  public contributors: Map<string, Contributor>;\n  public contributorsIcons: Map<string, string>;\n  public collaborationByCollection: Array<{ collection: string; collaborationId: string; }> = [];\n  public countAll: CollectionCount[] = [];\n  public extraCountAll: CollectionCount[] = [];\n  public readonly NUMBER_FORMAT_CHAR = 'NUMBER_FORMAT_CHAR';\n  public collaborationsMap: Map<string, Collaboration> = new Map();\n  public isExtraOpen = false;\n\n  public ZoomToDataStrategy = ZoomToDataStrategy;\n\n  /**\n   * @description Whether to exceptionally display the extra collections for space computations\n   */\n  public showExtraCollections = false;\n\n  private _onDestroy$ = new Subject<boolean>();\n\n  public constructor(\n    private collaborativeSearchService: ArlasCollaborativesearchService,\n    private arlasStartupService: ArlasStartupService,\n    private configService: ArlasConfigService,\n    private arlasColorService: ArlasColorService,\n    private cdr: ChangeDetectorRef,\n    private collectionService: ArlasCollectionService\n  ) {\n    this.contributors = this.collaborativeSearchService.registry;\n    this.subscribeToFutureCollaborations();\n    this.contributorsIcons = new Map(this.getAllContributorsIcons());\n  }\n\n  public ngOnChanges(changes: SimpleChanges): void {\n    if (changes['availableSpace'] || changes['extraTitleWidth']) {\n      this.hideExtraCollections(true);\n    }\n  }\n\n  public ngOnDestroy() {\n    this._onDestroy$.next(true);\n    this._onDestroy$.complete();\n  }\n\n  public removeCollaboration(contributorId: string): void {\n    this.collaborativeSearchService.removeFilter(contributorId);\n    this.cdr.detectChanges();\n  }\n\n  public changeCollaborationState(contributorId: string): void {\n    this.clickOnFilter.next(contributorId);\n    const collaborationState = this.collaborativeSearchService.isEnable(contributorId);\n    if (collaborationState) {\n      this.collaborativeSearchService.disable(contributorId);\n    } else {\n      this.collaborativeSearchService.enable(contributorId);\n    }\n  }\n\n  public removeAllFilters(): void {\n    this.collaborativeSearchService.removeAll();\n    this.cdr.detectChanges();\n  }\n\n  public getAllContributorsIcons(): any {\n    return Array.from(this.arlasStartupService.contributorRegistry.keys())\n      .map(k => [k, this.configService.getValue('arlas.web.contributors').find((contrib: any) => contrib.identifier === k).icon]).values();\n  }\n\n  public zoomToData(collection: string): void {\n    this.zoomEvent.next(collection);\n  }\n\n  public toggleExtraCounts() {\n    this.isExtraOpen = !this.isExtraOpen;\n  }\n\n  private retrieveCurrentCollaborations() {\n    // If a contributor is the one of a shortcut, then its id is an UUID\n    Array.from(this.contributors.keys()).filter(id => (this.ignoredContributors.indexOf(id) < 0) && !isShortcutID(id))\n      .forEach(contributorId => {\n        const collaboration = this.collaborativeSearchService.getCollaboration(contributorId);\n        if (collaboration != null) {\n          this.collaborations.add(contributorId);\n        } else {\n          this.collaborations.delete(contributorId);\n        }\n      });\n  }\n\n  private subscribeToFutureCollaborations() {\n    this.collaborativeSearchService.collaborationBus.pipe(takeUntil(this._onDestroy$)).subscribe(collaborationBus => {\n      this.collaborationsMap = new Map(this.collaborativeSearchService.collaborations);\n      this.collaborativeSearchService.countAll.pipe(take(1), takeUntil(this._onDestroy$)).subscribe(count => {\n        if (!!count) {\n          this.countAll = [];\n          const countsMap = new Map<string, CollectionCount>();\n          count.forEach(c => {\n            const description = this.collectionToDescription.get(c.collection);\n            countsMap.set(c.collection, {\n              collection: c.collection,\n              count: c.count,\n              color: this.arlasColorService.getColor(c.collection) + ' !important',\n              hasCentroidPath: !!description?.centroid_path,\n              hasGeometryPath: !!description?.geometry_path,\n              unit: this.collectionService.getUnit(c.collection),\n              ignored: this.collectionService.isUnitIgnored(c.collection)\n            });\n          });\n\n          /** respects order of units list that is given by config */\n          const unitsSet = new Set(this.collectionService.getAllUnits().map(u => u.collection));\n          unitsSet.forEach(c => {\n            const count = countsMap.get(c);\n            if (count) {\n              this.countAll.push(count);\n            }\n          });\n          // Collections that don't have units are at the end of the list\n          countsMap.forEach((v, k) => {\n            if (!unitsSet.has(k)) {\n              this.countAll.push(v);\n            }\n          });\n        }\n        this.cdr.detectChanges();\n        this.hideExtraCollections(false);\n      });\n      if (!collaborationBus.all && (this.ignoredContributors.indexOf(collaborationBus.id) < 0) && !isShortcutID(collaborationBus.id)) {\n        const collaboration = this.collaborativeSearchService.getCollaboration(collaborationBus.id);\n        if (collaboration != null) {\n          if (collaborationBus.operation === 0) {\n            this.collaborations.add(collaborationBus.id);\n          } else if (collaborationBus.operation === 1) {\n            this.collaborations.delete(collaborationBus.id);\n          }\n        } else {\n          this.collaborations.delete(collaborationBus.id);\n        }\n      } else {\n        this.retrieveCurrentCollaborations();\n      }\n    });\n  }\n\n  /**\n   * Based on the space available, decide which collection count go in a 'See more' section. If no 'availableSpace' is set, nothing is done.\n   */\n  private hideExtraCollections(resizeEvent: boolean) {\n    if (this.availableSpace && this.countAll) {\n      this.showExtraCollections = true;\n      if (resizeEvent && this.extraCountAll) {\n        this.countAll = [...this.countAll, ...this.extraCountAll];\n        this.extraCountAll = new Array();\n      }\n      this.cdr.detectChanges();\n\n      const widths = this.countAll.map(\n        c => !!document.getElementById(`arlas-count-${c.collection}`) ?\n          (document.getElementById(`arlas-count-${c.collection}`)?.getBoundingClientRect().width ?? 0) + this.spacing : 0);\n      const clearAllWidth = this.collaborations.size > 0 && !!document.getElementById('clear-all') ?\n        (document.getElementById('clear-all')?.getBoundingClientRect().width ?? 0) + this.spacing : 0;\n      const timelineChipWidth = this.collaborations.has('timeline') && !!document.getElementById('filter-chip-timeline') ?\n        (document.getElementById('filter-chip-timeline')?.getBoundingClientRect().width ?? 0) + this.spacing : 0;\n      const extraCollectionsWidth = !!document.getElementById('extra-collections') ?\n        (document.getElementById('extra-collections')?.getBoundingClientRect().width ?? 0) + this.spacing : 0;\n\n      let breakoffIndex = -1;\n      let cumulativeWidth = 0;\n      const threshold = this.availableSpace - timelineChipWidth - clearAllWidth;\n      for (let idx = 0; idx < widths.length; idx++) {\n        cumulativeWidth += widths[idx];\n        // If this count overflows\n        if (cumulativeWidth > threshold) {\n          // If the previous count + the 'See more' overflows\n          if (idx - 1 >= 0 && cumulativeWidth - widths[idx] > threshold - extraCollectionsWidth) {\n            breakoffIndex = idx - 1;\n          } else {\n            breakoffIndex = idx;\n          }\n          break;\n        }\n      }\n      this.extraCountAll = breakoffIndex >= 0 ? this.countAll.splice(breakoffIndex, this.countAll.length - breakoffIndex) : [];\n      this.showExtraCollections = false;\n      this.cdr.detectChanges();\n    }\n  }\n}\n","<mat-chip-listbox class=\"chips--container\">\n  @for (c of countAll; track c) {\n    @if (!c.ignored) {\n      <mat-basic-chip class=\"collection-chip\" id=\"arlas-count-{{c.collection}}\" [style.borderColor]=\"c.color\"\n        >\n        <div class=\"count-container\">\n          @if (showZoomToData &&\n            (((zoomToStrategy === ZoomToDataStrategy.CENTROID || !zoomToStrategy)  && c.hasCentroidPath)\n            || (zoomToStrategy === ZoomToDataStrategy.GEOMETRY && c.hasGeometryPath))) {\n            <button mat-icon-button class=\"zoom\" (click)=\"zoomToData(c.collection)\"\n                [matTooltip]=\"'Zoom to data' | translate\" matTooltipPosition=\"below\">\n              <mat-icon>filter_center_focus</mat-icon>\n            </button>\n          }\n          <div class=\"value-unit\">\n            <div class=\"value\">\n              {{c.count | formatNumber:NUMBER_FORMAT_CHAR}}\n            </div>\n            <div class=\"unit\">\n              {{c.unit | translate}}\n            </div>\n          </div>\n          @for (contributorId of collaborations; track contributorId; let index = $index) {\n            @if (contributorId | isCollabOnCollection:c.collection:contributors) {\n              <mat-basic-chip id=\"filter-chip-{{contributorId}}\" class=\"filter-chip\"\n                [style.color]=\"contributorId | getGlobalColorFilter:'color':colorFilter:backgroundColorFilter:collaborationsMap \"\n                [style.background-color]=\"contributorId | getGlobalColorFilter:'background':colorFilter:backgroundColorFilter:collaborationsMap \"\n                (click)=\"changeCollaborationState(contributorId)\"\n                [matTooltip]=\"contributorId | getContributorLabel:contributors | translate\">\n                <mat-icon class=\"icon\">{{contributorId | getCollaborationIcon:contributorsIcons }}\n                </mat-icon>\n                <button mat-icon-button (click)=\"removeCollaboration(contributorId)\" class=\"icon_close\">\n                  <mat-icon>clear</mat-icon>\n                </button>\n              </mat-basic-chip>\n            }\n          }\n        </div>\n      </mat-basic-chip>\n    }\n  }\n\n  @if (showExtraCollections || (extraCountAll && extraCountAll.length > 0)) {\n    <div class=\"extra\"\n      [class.extra-open]=\"isExtraOpen\" id=\"extra-collections\">\n      <section class=\"title\" (click)=\"toggleExtraCounts()\" (keydown)=\"toggleExtraCounts()\">\n        <div class=\"text\">{{ 'See more' | translate }}</div>\n        <div class=\"info\">\n          <div class=\"extra-count-number\">{{ extraCountAll ? extraCountAll.length : 0 }}</div>\n          <mat-icon class=\"chevron\">\n            {{isExtraOpen ? 'expand_less' : 'expand_more'}}\n          </mat-icon>\n        </div>\n      </section>\n      @if (isExtraOpen) {\n        <div class=\"separator\"></div>\n      }\n      <section [class.hidden]=\"!isExtraOpen\" class=\"extra-counts\">\n        @for (c of extraCountAll; track c) {\n          @if (!c.ignored) {\n            <mat-basic-chip class=\"collection-chip\" id=\"arlas-count-{{c.collection}}\" [style.borderColor]=\"c.color\"\n              >\n              <div class=\"count-container\">\n                @if (showZoomToData &&\n                  (((zoomToStrategy === ZoomToDataStrategy.CENTROID || !zoomToStrategy)  && c.hasCentroidPath)\n                  || (zoomToStrategy === ZoomToDataStrategy.GEOMETRY && c.hasGeometryPath))) {\n                  <button mat-icon-button class=\"zoom\" (click)=\"zoomToData(c.collection)\"\n                      [matTooltip]=\"'Zoom to data' | translate\" matTooltipPosition=\"left\">\n                    <mat-icon>filter_center_focus</mat-icon>\n                  </button>\n                }\n                <div class=\"value-unit\">\n                  <div class=\"value\">\n                    {{c.count | formatNumber:NUMBER_FORMAT_CHAR}}\n                  </div>\n                  <div class=\"unit\">\n                    {{c.unit | translate}}\n                  </div>\n                </div>\n                @for (contributorId of collaborations; track contributorId; let index = $index) {\n                  @if (contributorId | isCollabOnCollection:c.collection:contributors) {\n                    <mat-basic-chip id=\"filter-chip-{{contributorId}}\" class=\"filter-chip\"\n                        [style.color]=\"contributorId | getGlobalColorFilter:'color':colorFilter:backgroundColorFilter:collaborationsMap \"\n                        [style.background-color]=\"contributorId | getGlobalColorFilter:'background':colorFilter:backgroundColorFilter:collaborationsMap \"\n                        (click)=\"changeCollaborationState(contributorId)\" (keydown)=\"changeCollaborationState(contributorId)\"\n                        [matTooltip]=\"contributorId | getContributorLabel:contributors | translate\">\n                      <mat-icon class=\"icon\">{{contributorId | getCollaborationIcon :contributorsIcons }}</mat-icon>\n                      <button mat-icon-button (click)=\"removeCollaboration(contributorId)\" class=\"icon_close\">\n                        <mat-icon>clear</mat-icon>\n                      </button>\n                    </mat-basic-chip>\n                  }\n                }\n              </div>\n            </mat-basic-chip>\n          }\n        }\n      </section>\n    </div>\n  }\n\n  @for (contributorId of collaborations; track contributorId; let index = $index) {\n    @if (contributorId === 'timeline') {\n      <mat-basic-chip class=\"timeline-chip\" [@fadeInOut] id=\"filter-chip-{{contributorId}}\"\n        [style.color]=\"contributorId | getGlobalColorFilter:'color':colorFilter:backgroundColorFilter:collaborationsMap \"\n        (click)=\"changeCollaborationState(contributorId)\"\n        [matTooltip]=\"contributorId | getContributorLabel:contributors | translate\">\n        <mat-icon class=\"icon\">{{contributorId | getCollaborationIcon :contributorsIcons }}</mat-icon>\n        <button mat-icon-button (click)=\"removeCollaboration(contributorId)\" class=\"icon_close\">\n          <mat-icon>clear</mat-icon>\n        </button>\n      </mat-basic-chip>\n    }\n  }\n\n  @if (collaborations.size > 0) {\n    <mat-basic-chip id=\"clear-all\" class=\"clear-chip\" [matTooltip]=\"'Clear all filters' | translate\"\n        [@fadeInOut] (click)=\"removeAllFilters()\" (keydown)=\"removeAllFilters()\">\n      <mat-icon>filter_alt_off</mat-icon>\n    </mat-basic-chip>\n  }\n</mat-chip-listbox>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormGroupDirective,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators\n} from '@angular/forms';\nimport { MatButton } from '@angular/material/button';\nimport { MatError, MatFormField, MatLabel, MatPrefix } from '@angular/material/form-field';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatInput } from '@angular/material/input';\nimport { RouterLink } from '@angular/router';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { ThemeService } from '../../services/theme.service';\n\n@Component({\n  selector: 'arlas-tool-forgot',\n  templateUrl: './forgot.component.html',\n  styleUrls: ['./forgot.component.scss', '../iam/form-style.scss'],\n  imports: [\n    FormsModule, ReactiveFormsModule, MatFormField, MatLabel, MatInput,\n    MatIcon, MatPrefix, MatError, MatButton, RouterLink, TranslatePipe]\n})\nexport class ForgotComponent {\n  public forgotForm = new FormGroup({\n    email: new FormControl('', [Validators.required, Validators.email, Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9.-]+\\\\.[a-z]{2,4}$')])\n  });\n  public validated = false;\n  public displayForm = true;\n  private readonly theme = inject(ThemeService);\n\n  public constructor(\n    private readonly iamService: ArlasIamService\n  ) {\n    this.theme.applyThemePreference();\n  }\n\n  public onSubmit(formDirective: FormGroupDirective) {\n    this.validated = false;\n    this.iamService.forgot(this.forgotForm.value.email as string).subscribe({\n      next: () => {\n        this.validated = true;\n        formDirective.resetForm();\n        this.forgotForm.reset();\n        this.displayForm = false;\n      },\n      error: err => {\n        // API respond with error (but the resquest is OK)\n        this.validated = true;\n      }\n    });\n  }\n\n}\n","<div class=\"container\">\n  <div class=\"sign-up-form text-center\" style=\"align-items: center;\">\n    <div>\n      <div class=\"title\">\n        <h2>ARLAS - {{'Reset password' | translate}}</h2>\n      </div>\n      <div>\n        <form [formGroup]=\"forgotForm\" (ngSubmit)=\"onSubmit(formDirective)\" #formDirective=\"ngForm\">\n          @if (displayForm) {\n            <div class=\"iam__form-content\">\n              <mat-form-field appearance=\"outline\">\n                <mat-label>{{'Email' | translate}}</mat-label>\n                <input matInput type=\"email\" formControlName=\"email\">\n                <mat-icon matPrefix>mail_outline</mat-icon>\n                @if (forgotForm.hasError('required', 'email')) {\n                  <mat-error>\n                    {{'Email is required' | translate}}\n                  </mat-error>\n                }\n                @if (forgotForm.hasError('pattern', 'email')) {\n                  <mat-error>\n                    {{'Email must be a valid email address' | translate}}\n                  </mat-error>\n                }\n              </mat-form-field>\n            </div>\n          }\n          @if (validated) {\n            <div class=\"validate\">\n              {{'If you have an account, you will receive an email shortly' | translate}}\n            </div>\n          }\n          @if (displayForm) {\n            <div class=\"buttons\">\n              <button type=\"submit\" class=\"sign-up-button\" [disabled]=\"forgotForm.invalid\" matButton=\"filled\" color=\"primary\">\n                {{ 'Send password reset email' | translate}}</button>\n            </div>\n          }\n          <div class=\"account\">\n            {{'Already have an account?' | translate}}\n            <button matButton=\"outlined\" color=\"primary\" type=\"button\" [routerLink]=\"'/login'\">{{ 'Log In' | translate}}</button>\n          </div>\n        </form>\n      </div>\n    </div>\n  </div>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { Component, input, ViewEncapsulation } from '@angular/core';\nimport { MatSelectModule } from '@angular/material/select';\nimport { getParamValue } from '../../tools/utils';\n\n/**\n * This component changes the `lg` parameter of ARLAS-wui url.\n */\n@Component({\n  selector: 'arlas-language-switcher',\n  templateUrl: './language-switcher.component.html',\n  styleUrls: ['./language-switcher.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  imports: [\n    MatSelectModule\n  ]\n})\nexport class LanguageSwitcherComponent {\n  /**\n   * @Input : Angular\n   * @description List of available languages for translation\n   */\n  public availablesLanguages = input.required<string[]>();\n\n  public currentLanguage: string;\n\n  public constructor() {\n    this.currentLanguage = navigator.language.slice(0, 2);\n    const urlLanguage = getParamValue('lg');\n    if (urlLanguage) {\n      this.currentLanguage = decodeURIComponent(urlLanguage.replaceAll('+', ' '));\n    }\n  }\n\n  /**\n   * Sets the given language in `lg` parameter of ARLAS-wui url\n   * @param lang Language name\n   */\n  public setLanguage(lang: string) {\n    let newLg: string;\n    if (window.location.search) {\n      if (window.location.search.indexOf('lg') !== -1) {\n        newLg = window.location.search.replace(/lg=(\\w+)/, 'lg=' + lang);\n      } else {\n        newLg = window.location.search + '&lg=' + lang;\n      }\n    } else {\n      newLg = '?lg=' + lang;\n    }\n    const newUrl = window.location.host + window.location.pathname + newLg;\n\n    window.location.replace('http://' + newUrl);\n  }\n}\n\n\n","<mat-select class=\"language-picker\" [(value)]=\"currentLanguage\"\n  [disableOptionCentering]=\"true\" [panelClass]=\"'language-picker__panel'\">\n  <mat-select-trigger class=\"language-picker__trigger\">\n    <span class=\"flag-icon flag-{{currentLanguage}}\"></span>\n  </mat-select-trigger>\n  @for (lang of availablesLanguages(); track lang) {\n    <mat-option (click)=\"setLanguage(lang)\" (keydown)=\"setLanguage(lang)\" [value]=\"lang\" class=\"switcher-option\">\n      <span class=\"flag-icon flag-{{lang}}\"></span>\n    </mat-option>\n  }\n</mat-select>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatButton } from '@angular/material/button';\nimport { MatError, MatFormField, MatLabel, MatPrefix, MatSuffix } from '@angular/material/form-field';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatInput } from '@angular/material/input';\nimport { Router, RouterLink } from '@angular/router';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { LoginData } from 'arlas-iam-api';\nimport { finalize } from 'rxjs';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { ErrorService } from '../../services/error/error.service';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\nimport { generateUserCacheBust, NOT_CONFIGURED } from '../../tools/utils';\nimport { ThemeService } from '../../services/theme.service';\n\n@Component({\n  selector: 'arlas-login',\n  templateUrl: './login.component.html',\n  styleUrls: [\n    './login.component.scss',\n    '../iam/form-style.scss'\n  ],\n  imports: [\n    FormsModule, ReactiveFormsModule, MatFormField, MatLabel, MatInput, MatIcon,\n    MatPrefix, MatError, MatSuffix, RouterLink, MatButton, TranslatePipe]\n})\nexport class LoginComponent implements OnInit {\n\n  public showPassword = false;\n  public loginForm = new FormGroup({\n    email: new FormControl('', Validators.required),\n    password: new FormControl('', Validators.required)\n  });\n  public isLoading = false;\n  public showPage = false;\n  public displayNoAccount = false;\n  private readonly theme = inject(ThemeService);\n\n  public constructor(\n    private readonly iamService: ArlasIamService,\n    private readonly settingsService: ArlasSettingsService,\n    private readonly errorService: ErrorService,\n    private readonly router: Router\n  ) {\n    this.theme.applyThemePreference();\n  }\n\n\n  public ngOnInit(): void {\n    this.errorService.closeAll();\n    const authSettings = this.settingsService.getAuthentSettings();\n    this.displayNoAccount = !!authSettings?.sign_up_enabled;\n    this.showPage = false;\n    this.iamService.refresh().pipe(finalize(() => this.showPage = true)).subscribe({\n      next: (loginData: LoginData) => {\n        this.iamService.user = loginData.user;\n        this.iamService.setHeadersFromAccesstoken(loginData.access_token);\n        this.iamService.notifyTokenRefresh(loginData);\n        localStorage.removeItem('arlas-logout-event');\n        if (!!this.iamService.reloadState) {\n          this.iamService.consumeReloadState();\n        } else {\n          if (!!authSettings && authSettings.redirect_uri && authSettings.redirect_uri !== NOT_CONFIGURED) {\n            window.open(authSettings.redirect_uri, '_self');\n          } else {\n            this.router.navigate(['/']);\n          }\n        }\n      },\n      error: () => {\n        this.iamService.logoutWithoutRedirection$().pipe(\n          finalize(() => this.errorService.closeAll())\n        ).subscribe();\n\n      }\n    });\n  }\n\n  public onSubmit(): void {\n    this.isLoading = true;\n    this.iamService.login(this.loginForm.value.email as string, this.loginForm.value.password as string).subscribe({\n        next: loginData => {\n          // Derive a deterministic cache-busting key from the user's unique ID\n          // This ensures cached responses are scoped per user while remaining reusable across sessions\n          if (loginData?.user?.id) {\n            sessionStorage.setItem('cache_bust', generateUserCacheBust(loginData.user.id));\n          }\n          this.iamService.user = loginData.user;\n          this.iamService.setHeadersFromAccesstoken(loginData.access_token);\n          this.iamService.notifyTokenRefresh(loginData);\n          this.iamService.startRefreshTokenTimer(loginData);\n          localStorage.removeItem('arlas-logout-event');\n          const authSettings = this.settingsService.getAuthentSettings();\n          if (!!this.iamService.reloadState) {\n            this.iamService.consumeReloadState();\n          } else {\n            if (!!authSettings && authSettings.redirect_uri && authSettings.redirect_uri !== NOT_CONFIGURED) {\n              window.open(authSettings.redirect_uri, '_self');\n            } else {\n              this.router.navigate(['/']);\n            }\n          }\n          this.isLoading = false;\n        },\n        error: () => {\n          this.errorService.closeAll();\n          this.iamService.logoutWithoutRedirection$().pipe(\n            finalize(() => {\n              this.loginForm.setErrors({\n                wrong: true\n              });\n              this.isLoading = false;\n            })\n          ).subscribe();\n\n        }\n      }\n    );\n  }\n\n}\n","@if (showPage) {\n  <div class=\"container\">\n    <div class=\"login-form text-center\" style=\"align-items: center;\">\n      <div>\n        <div class=\"title\">\n          <h2>ARLAS - {{'Sign in' | translate}}</h2>\n        </div>\n        <div>\n          <form [formGroup]=\"loginForm\" (ngSubmit)=\"onSubmit()\">\n            <div class=\"iam__form-content\">\n              <mat-form-field appearance=\"outline\">\n                <mat-label>{{'Email' | translate}}</mat-label>\n                <input matInput type=\"email\" name=\"email\" formControlName=\"email\">\n                <mat-icon matPrefix>mail_outline</mat-icon>\n                @if (loginForm.hasError('required', 'email')) {\n                  <mat-error>\n                    {{'Email is required' | translate}}\n                  </mat-error>\n                }\n              </mat-form-field>\n              <mat-form-field appearance=\"outline\">\n                <mat-label>{{ 'Password' | translate}}</mat-label>\n                <input matInput type=\"{{ showPassword ? 'text' : 'password' }}\" formControlName=\"password\">\n                <mat-icon matPrefix>vpn_key</mat-icon>\n                <mat-icon (click)=\"showPassword = !showPassword\" style=\"cursor: pointer;\" matSuffix>{{showPassword ?\n                'visibility' : 'visibility_off'}}</mat-icon>\n                @if (loginForm.hasError('required', 'password')) {\n                  <mat-error>\n                    {{ 'Please enter your password' | translate}}\n                  </mat-error>\n                }\n              </mat-form-field>\n              <div class=\"forgot\">\n                <a routerLink=\"/password_forgot\">{{ 'Forgot password?' | translate}}</a>\n              </div>\n            </div>\n            @if (loginForm.getError('wrong')) {\n              <div class=\"error\">\n                {{ 'Login or password invalid' | translate}}\n              </div>\n            }\n            <div class=\"buttons\">\n              <button type=\"submit\" class=\"login-button\" [class.spinner]=\"isLoading\" [disabled]=\"loginForm.invalid || isLoading\"\n                matButton=\"filled\" color=\"primary\">{{ 'Login' | translate}}</button>\n            </div>\n            @if (displayNoAccount) {\n              <div class=\"no-account\">\n                {{'No Account?' | translate}}\n                <button matButton=\"outlined\" color=\"primary\" type=\"button\" [routerLink]=\"'/register'\">{{ 'Sign up' | translate}}</button>\n              </div>\n            }\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n} @else {\n  <div class=\"empty_mode\">\n    <img class=\"gif\" src=\"assets/spinner.gif\">\n  </div>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { JsonPipe } from '@angular/common';\nimport { Component, DestroyRef, inject, Inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatProgressSpinner } from '@angular/material/progress-spinner';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { PermissionData, PermissionDef } from 'arlas-iam-api';\nimport { GetCollectionDisplayNamePipe } from 'arlas-web-components';\nimport { finalize } from 'rxjs';\nimport { ArlasIamService } from '../../../services/arlas-iam/arlas-iam.service';\nimport { ArlasSettingsService } from '../../../services/settings/arlas.settings.service';\nimport { PermissionDialogData } from '../_interfaces';\n\n@Component({\n  templateUrl: './permissions-creator-dialog.component.html',\n  styleUrls: ['./permissions-creator-dialog.component.scss'],\n  imports: [\n    MatDialogModule,\n    TranslatePipe,\n    MatProgressSpinner,\n    JsonPipe,\n    MatIconModule,\n    MatFormFieldModule,\n    ReactiveFormsModule,\n    GetCollectionDisplayNamePipe,\n    MatButtonModule,\n    MatInputModule\n  ]\n})\nexport class PermissionsCreatorDialogComponent {\n\n  public createPermissionForm = new FormGroup({\n    description: new FormControl<string>('', [Validators.required])\n  });\n\n  public CREATE_TEXT: string = marker('Create the permission');\n  public CLOSE_TEXT = marker('Close');\n\n  public descriptionInputDisabled = false;\n  public descriptionInputHidden = false;\n\n  public creationButtonDisabled = false;\n  public creationButtonHidden = false;\n\n  public creationStatus: 'successful' | 'errored' | undefined;\n  public creationError: any;\n\n  public showErrorDetails = false;\n  public showSpinner = false;\n  public showAction = true;\n\n  private readonly destroyRef = inject(DestroyRef);\n\n  public constructor(\n    private readonly iamService: ArlasIamService,\n    @Inject(MAT_DIALOG_DATA) public data: PermissionDialogData,\n    private readonly settingsService: ArlasSettingsService\n  ) { }\n\n  public createPermission() {\n    this.CREATE_TEXT = marker('Creating');\n    this.showSpinner = true;\n    this.creationButtonDisabled = true;\n    this.descriptionInputDisabled = false;\n    const permissionDef: PermissionDef = {\n      value: this.data.partitionFilterHeader,\n      description: this.createPermissionForm.value.description ?? undefined\n    };\n    this.iamService.createPermission(this.data.oid, permissionDef).pipe(\n      finalize(() => {\n        this.showSpinner = false;\n        this.creationButtonDisabled = false;\n        this.creationButtonHidden = true;\n        this.descriptionInputHidden = true;\n      }),\n      takeUntilDestroyed(this.destroyRef)\n    ).subscribe({\n      next: (permissionData: PermissionData) => {\n        this.creationStatus = 'successful';\n        this.showAction = !!this.settingsService.getArlasIAMWuiUrl();\n      },\n      error: (err: any) => {\n        this.creationStatus = 'errored';\n        this.creationError = err;\n        console.log(err);\n      }\n    });\n  }\n\n  public goToArlasIAMWui() {\n    const iamUrl = this.settingsService.getArlasIAMWuiUrl();\n    if (!!iamUrl) {\n      window.open(iamUrl);\n    }\n  }\n\n}\n","<div mat-dialog-title class=\"title\">{{'Create permission' | translate}}</div>\n<mat-dialog-content class=\"content\">\n  @if (!descriptionInputHidden) {\n    <div class=\"announcement\" >\n      <span>{{'The current filters applied to' | translate}} </span>\n      <span class=\"collection\">{{ data.mainCollection | getCollectionDisplayName | translate }}, </span>\n      <span>{{'will be associated to a new permission' | translate}} </span>\n    </div>\n\n    <div class=\"call_to_action\" >{{'Add permission description' | translate}}</div>\n\n    <div class=\"create-content\" [formGroup]=\"createPermissionForm\">\n      <mat-form-field appearance=\"outline\">\n        <mat-label>{{'Description' | translate}}</mat-label>\n        <input [disabled]=\"descriptionInputDisabled\" formControlName=\"description\" matInput type=\"text\" required >\n      </mat-form-field>\n    </div>\n  }\n  @if (creationStatus === 'successful') {\n    <div class=\"successful\">\n      <mat-icon class=\"icon\">check_circle</mat-icon>\n      <div class=\"state\">{{'The permission was created successfully' | translate}}</div>\n      @if (showAction) {\n        <button matButton=\"filled\" color=\"primary\" class=\"action\" (click)=\"goToArlasIAMWui()\">\n          {{'go to iam' | translate}}\n        </button>\n      }\n    </div>\n  } @else if (creationStatus === 'errored') {\n    <div class=\"errored\">\n      <mat-icon class=\"icon\">error</mat-icon>\n      <div class=\"state\">{{'The permission creation failed' | translate}}</div>\n      <button matButton=\"filled\" color=\"accent\" class=\"action\" (click)=\"showErrorDetails = !showErrorDetails\">\n        <span>{{'See details' | translate}}</span>\n        <mat-icon>{{ showErrorDetails ? 'expand_more' : 'chevron_right' }}</mat-icon>\n      </button>\n      @if (showErrorDetails) {\n        <div class=\"detail\">\n          {{creationError | json}}\n        </div>\n      }\n    </div>\n  }\n</mat-dialog-content>\n\n<mat-dialog-actions class=\"actions\">\n  <button matButton=\"outlined\" [disabled]=\"creationButtonDisabled\" [mat-dialog-close]=\"null\">{{CLOSE_TEXT | translate}}\n  </button>\n  @if (!creationButtonHidden) {\n    <button class=\"create-action\" matButton=\"filled\" color=\"primary\" (click)=\"createPermission()\"\n      [disabled]=\"createPermissionForm.invalid || creationButtonDisabled\">\n      <span class=\"label\">{{CREATE_TEXT | translate}}</span>\n      @if (showSpinner) {\n        <mat-spinner diameter=\"20\"></mat-spinner>\n      }\n    </button>\n  }\n</mat-dialog-actions>","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, DestroyRef, inject, OnInit } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Filter } from 'arlas-api';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { PermissionDialogData } from './_interfaces';\nimport { PermissionsCreatorDialogComponent } from './permissions-creator-dialog/permissions-creator-dialog.component';\n\n/** Creates an IAM permission based on the current filter of the main collection. */\n@Component({\n  selector: 'arlas-permissions-creator',\n  templateUrl: './permissions-creator.component.html',\n  styleUrls: ['./permissions-creator.component.scss'],\n  imports: [\n    MatButtonModule,\n    MatTooltipModule,\n    TranslatePipe\n  ]\n})\nexport class PermissionsCreatorComponent implements OnInit {\n\n  public show = false;\n\n  private readonly destroyRef = inject(DestroyRef);\n\n  public constructor(\n    private readonly collaborativeSearchService: ArlasCollaborativesearchService,\n    private readonly iamService: ArlasIamService,\n    private readonly createPermissionDialog: MatDialog\n  ) { }\n\n  public ngOnInit(): void {\n    this.show = this.hasCreationRight() && this.hasMainCollection();\n    this.collaborativeSearchService.ongoingSubscribe\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe(() => {\n        if (this.collaborativeSearchService.totalSubscribe === 0) {\n          this.show = this.hasCreationRight() && this.hasMainCollection();\n        }\n      });\n  }\n\n  public createPermission() {\n    // - What is the main collection\n    const mainCollection = this.collaborativeSearchService.defaultCollection;\n    // - What is my current org\n    const currentOrgName = this.iamService.getOrganisation();\n    const oid = this.getOrganisationId(currentOrgName);\n\n    const canCreatePermission = this.hasCreationRight();\n    if (canCreatePermission && oid) {\n      // - Get filters of the main collection\n      const filters: Filter[] = this.collaborativeSearchService.getFilters(mainCollection);\n      // - Build the permission\n      const partitionFilter: Record<string, Filter> = {};\n      partitionFilter[mainCollection] = this.collaborativeSearchService.getFinalFilter(filters);\n      const partitionFilterHeader = `h:partition-filter:${JSON.stringify(partitionFilter)}`;\n\n      const permissionData: PermissionDialogData = {\n        partitionFilterHeader,\n        mainCollection,\n        oid\n      };\n      // - open a dialog for description\n      this.createPermissionDialog.open(PermissionsCreatorDialogComponent, {\n        data: permissionData,\n        disableClose: true,\n        panelClass: 'arlas-permission-dialog'\n      });\n    } else {\n      this.show = false;\n    }\n  }\n\n  /** Checks if the current user is owner of the current organisation.\n   * If it is the case, we continue\n   * Otherwise, the creation of the permission is stopped.\n   */\n  private hasCreationRight() {\n    const currentUser = this.iamService.user;\n    const orgName = this.iamService.getOrganisation();\n    if (!currentUser) {\n      return false;\n      // logout ?\n    }\n    const currentOrg = currentUser.organisations?.find(o => o.name === orgName);\n    if (!!currentOrg && currentOrg.isOwner) {\n      return true;\n    }\n    return false;\n  }\n\n  private hasMainCollection(): boolean {\n    return !!this.collaborativeSearchService.defaultCollection;\n  }\n\n  private getOrganisationId(orgName: string | undefined) {\n    if (!orgName) {\n      return undefined;\n    }\n\n    const currentUser = this.iamService.user;\n    const currentOrg = currentUser?.organisations?.find(o => o.name === orgName);\n    return currentOrg?.id;\n  }\n}\n","@if (show) {\n  <button matButton=\"outlined\" (click)=\"createPermission()\"\n    [matTooltip]=\"'Create permission from filters' | translate\" class=\"permission\">\n    {{'Create permission' | translate}}\n  </button>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormGroupDirective,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators\n} from '@angular/forms';\nimport { MatButton } from '@angular/material/button';\nimport { MatError, MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { RouterLink } from '@angular/router';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\nimport { ThemeService } from '../../services/theme.service';\n\n@Component({\n  selector: 'arlas-tool-register',\n  templateUrl: './register.component.html',\n  styleUrls: [\n    './register.component.scss',\n    '../iam/form-style.scss'\n  ],\n  imports: [FormsModule, ReactiveFormsModule, MatFormField, MatLabel, MatInput, MatError, MatButton, RouterLink, TranslatePipe]\n})\nexport class RegisterComponent {\n\n  public signUpForm = new FormGroup({\n    email: new FormControl('', [Validators.required, Validators.email, Validators.pattern(String.raw`^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$`)])\n  });\n  public validated = false;\n  public displayForm = true;\n  public allowRegister = false;\n  private readonly theme = inject(ThemeService);\n\n  public constructor(\n    private readonly iamService: ArlasIamService,\n    private readonly settingsService: ArlasSettingsService\n  ) {\n    const authSettings = this.settingsService.getAuthentSettings();\n    this.allowRegister = !!authSettings?.sign_up_enabled;\n    this.theme.applyThemePreference();\n  }\n\n  public onSubmit(formDirective: FormGroupDirective) {\n    this.validated = false;\n    this.iamService.signUp(this.signUpForm.value.email as string).subscribe({\n      next: () => {\n        formDirective.resetForm();\n        this.signUpForm.reset();\n        this.displayForm = false;\n        this.validated = true;\n      },\n      error: err => {\n        this.signUpForm.setErrors({\n          alreadyExist: true\n        });\n      }\n    });\n  }\n\n}\n","<div class=\"container\">\n  <div class=\"sign-up-form text-center\" style=\"align-items: center;\">\n    <div>\n      <div class=\"title\">\n        <h2>ARLAS - {{'Sign up' | translate}}</h2>\n      </div>\n      @if (allowRegister) {\n        <div>\n          <div class=\"subtitle\">\n            {{'It\\'s quick and easy !' | translate}}\n            <br />\n            {{'Just enter your email' | translate}}\n          </div>\n          <form [formGroup]=\"signUpForm\" (ngSubmit)=\"onSubmit(formDirective)\" #formDirective=\"ngForm\">\n            @if (displayForm) {\n              <div class=\"iam__form-content\">\n                <mat-form-field appearance=\"outline\">\n                  <mat-label>{{'Email' | translate}}</mat-label>\n                  <input matInput type=\"email\" formControlName=\"email\">\n                  @if (signUpForm.hasError('required', 'email')) {\n                    <mat-error>\n                      {{'Email is required' | translate}}\n                    </mat-error>\n                  }\n                  @if (signUpForm.hasError('pattern', 'email')) {\n                    <mat-error>\n                      {{'Email must be a valid email address' | translate}}\n                    </mat-error>\n                  }\n                </mat-form-field>\n                <div class=\"terms\">\n                  {{'By creating an account, you agree to the' | translate}} <br /> <a href=\"https://www.arlas.io/terms\" target=\"_blank\">{{'Terms of Service' | translate}}</a>\n                </div>\n              </div>\n            }\n            @if (signUpForm.getError('alreadyExist')) {\n              <div class=\"error\">\n                {{ 'User already exists' | translate}}\n              </div>\n            }\n            @if (validated) {\n              <div class=\"validate\">\n                {{'Registration validated, you will receive an email to validate your account' | translate}}\n              </div>\n            }\n            @if (displayForm) {\n              <div class=\"buttons\">\n                <button type=\"submit\" class=\"sign-up-button\" [disabled]=\"signUpForm.invalid\"\n                  matButton=\"filled\" color=\"primary\">{{ 'Sign up' | translate}}</button>\n              </div>\n            }\n            <div class=\"account\">\n              {{'Already have an account?' | translate}}\n              <button matButton=\"outlined\" color=\"primary\" type=\"button\" [routerLink]=\"'/login'\">{{ 'Log In' | translate}}</button>\n            </div>\n          </form>\n        </div>\n      } @else {\n        <div class=\"not-allowed\">\n          {{'Registration is not enabled' | translate}}\n        </div>\n      }\n    </div>\n\n  </div>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject } from '@angular/core';\nimport { FormControl, FormGroup, FormsModule, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';\nimport { MatButton } from '@angular/material/button';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { ActivatedRoute, RouterLink } from '@angular/router';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { ConfirmedValidator } from '../../tools/utils';\nimport { ThemeService } from '../../services/theme.service';\n\n@Component({\n  selector: 'arlas-tool-reset',\n  templateUrl: './reset.component.html',\n  styleUrls: [\n    './reset.component.scss',\n    '../iam/form-style.scss'\n  ],\n  imports: [FormsModule, ReactiveFormsModule, MatFormField, MatLabel, MatInput, MatButton, RouterLink, TranslatePipe]\n})\nexport class ResetComponent {\n  public resetForm = new FormGroup({\n    password: new FormControl('', [Validators.required]),\n    confirm_password: new FormControl('', [Validators.required])\n  }, ConfirmedValidator('password', 'confirm_password') as ValidatorFn);\n  public validated = false;\n  public userId: string | null = null;\n  public token: string | null = null;\n  private readonly theme = inject(ThemeService);\n\n  public constructor(\n    private readonly iamService: ArlasIamService,\n    private readonly route: ActivatedRoute,\n  ) {\n    this.route.paramMap.subscribe(params => {\n      this.userId = params.get('id');\n      this.token = params.get('token');\n    });\n    this.theme.applyThemePreference();\n  }\n\n  public onSubmit(): void {\n    if (this.userId && this.token) {\n      this.validated = false;\n      this.iamService.reset(this.userId, this.token, this.resetForm.value.password as string).subscribe({\n        next: (data) => {\n          this.validated = true;\n        },\n        error: err => {\n          console.error(err);\n        }\n      });\n    }\n  }\n}\n","<div class=\"container\">\n  <div class=\"reset-form text-center\" style=\"align-items: center;\">\n    <div>\n      <div class=\"title\">\n        <h2>ARLAS - {{'Reset password' | translate}}</h2>\n      </div>\n      <div>\n        <form [formGroup]=\"resetForm\" (ngSubmit)=\"onSubmit()\">\n          <div class=\"iam__form-content\">\n            @if (!validated) {\n              <mat-form-field appearance=\"outline\">\n                <mat-label>{{'Password' | translate}}</mat-label>\n                <input matInput type=\"password\" formControlName=\"password\">\n              </mat-form-field>\n              <mat-form-field appearance=\"outline\">\n                <mat-label>{{'Confirm password' | translate}}</mat-label>\n                <input matInput type=\"password\" formControlName=\"confirm_password\">\n              </mat-form-field>\n            }\n\n\n          </div>\n          @if (validated) {\n            <div class=\"validate\">\n              {{'Your password has been changed.' | translate}}\n            </div>\n          }\n          @if (!validated) {\n            <div class=\"buttons\">\n              <button  type=\"submit\" class=\"reset-button\" [disabled]=\"resetForm.invalid\"\n                matButton=\"filled\" color=\"primary\">{{ 'Change' | translate}}</button>\n            </div>\n          }\n          <div class=\"account\">\n            {{'Already have an account?' | translate}}\n            <button matButton=\"outlined\" color=\"primary\" type=\"button\" [routerLink]=\"'/login'\">{{ 'Log In' | translate}}</button>\n          </div>\n        </form>\n      </div>\n    </div>\n  </div>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { AsyncPipe } from '@angular/common';\nimport {\n  AfterViewInit, Component, computed, DestroyRef, ElementRef,\n  inject, Inject, input, Input, linkedSignal, OnInit, viewChild\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { AggregationResponse } from 'arlas-api';\nimport { ArlasColorService, GetCollectionDisplayNamePipe } from 'arlas-web-components';\nimport { AggregationResponseWithCollection, SearchContributor } from 'arlas-web-contributors';\nimport { OperationEnum } from 'arlas-web-core';\nimport { debounceTime, filter, map, mergeMap, mergeWith, Observable, of, startWith, Subject, zip } from 'rxjs';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigService } from '../../services/startup/startup.service';\n\n@Component({\n  selector: 'arlas-search',\n  templateUrl: './search.component.html',\n  styleUrls: ['./search.component.scss'],\n  imports: [\n    MatIconModule,\n    MatButtonModule,\n    TranslatePipe,\n    MatTooltipModule\n  ]\n})\nexport class SearchComponent implements OnInit {\n  /**\n   * @Input : Angular\n   * @description Search contributor\n   */\n  public searchContributors = input.required<SearchContributor[]>();\n\n  /**\n   * @Input : Angular\n   * @description Top position of the search dialog in pixels\n   */\n  @Input() public dialogPositionTop = 0;\n\n  /**\n   * @Input : Angular\n   * @description Left position of the search dialog in pixels\n   */\n  @Input() public dialogPositionLeft = 0;\n\n  /**\n   * @Input : Angular\n   * @description Value of the search filter\n   */\n  public searchValue = input<string | undefined>();\n\n  /** Search value displayed by the component */\n  public displayedSearchValue = linkedSignal(() => this.searchValue() ?? this.searchPlaceholder());\n  /**\n * @Input : Angular\n * @description Wether display or not the button to select the collections\n */\n  @Input() public displayCollectionSettings = true;\n\n  /**\n   * @description Placeholder value as retrieved from the search contributor\n   */\n  public searchPlaceholder = computed<string>(() => this.translate.instant(\n    this.searchContributors()[0] ? this.searchContributors()[0].getName() : marker('Search...')));\n\n  public collectionsState: Map<string, boolean> = new Map();\n  public collections: SearchCollection[] = [];\n\n  private readonly destroyRef = inject(DestroyRef);\n  public constructor(\n    private readonly arlasColorService: ArlasColorService,\n    private readonly collaborativeService: ArlasCollaborativesearchService,\n    private readonly translate: TranslateService,\n    private readonly dialog: MatDialog,\n    private readonly configService: ArlasConfigService,\n    private readonly snackbar: MatSnackBar\n  ) { }\n\n  public ngOnInit(): void {\n    // By default all the collections are checked in the checkbox list\n    this.searchContributors().forEach(s => this.collectionsState.set(s.collection, true));\n    this.collections = this.searchContributors().map(s => ({\n      label: s.collection, checked: true,\n      color: this.arlasColorService.getColor(s.collection)\n    }));\n\n    // Retrieve value from the url and future collaborations\n    this.searchContributors().forEach((s, i) => {\n      this.collaborativeService.collaborationBus.pipe(\n        filter(e => {\n          const contributor = this.collaborativeService.registry.get(e.id);\n          let letPassContributor = false;\n          if (contributor) {\n            letPassContributor = contributor.getConfigValue('type') === 'search' || contributor.getConfigValue('type') === 'chipssearch';\n          }\n          return s.isMyOwnCollaboration(e) || e.id === 'url' || e.id === 'all' || (letPassContributor && e.operation === OperationEnum.remove);\n        }),\n        takeUntilDestroyed(this.destroyRef)\n      )\n        .subscribe(\n          e => {\n            const collaboration = this.collaborativeService.getCollaboration(s.identifier);\n            if (collaboration) {\n              collaboration.filters.forEach((f, collection) => {\n                let initSearchValue = '';\n                if (collection === s.collection) {\n                  for (const filter of f) {\n                    let searchtxt = filter.q?.[0][0];\n                    if (searchtxt && searchtxt.split(':').length > 0) {\n                      searchtxt = searchtxt.split(':')[1];\n                    }\n                    initSearchValue += searchtxt?.replaceAll(/\"/gi, '') + ' ';\n                  }\n                  this.displayedSearchValue.set(initSearchValue.slice(0, -1));\n                }\n              });\n            } else {\n              this.displayedSearchValue.set(this.searchPlaceholder());\n            }\n          }\n        );\n    });\n  }\n\n  public search(value: string) {\n    this.searchContributors().filter(s => this.collectionsState.get(s.collection)).forEach(s => s.search(value));\n    if (this.searchContributors().length === 1) {\n      this.searchContributors()[0].search(value);\n    } else {\n      const configDebounceTime = this.configService.getValue('arlas.server.debounceCollaborationTime');\n      const debounceDuration = configDebounceTime === undefined ? 750 : configDebounceTime;\n      const enabledContributors = this.searchContributors().filter(s => this.collectionsState.get(s.collection));\n      for (let i = 0; i < enabledContributors.length; i++) {\n        setTimeout(() => {\n          this.snackbar.open(this.translate.instant('Loading data of', { collection: enabledContributors[i].collection }));\n          enabledContributors[i].search(value);\n          if (i === enabledContributors.length - 1) {\n            setTimeout(() => this.snackbar.dismiss(), 1000);\n          }\n        }, (i) * ((debounceDuration + 100) * 1.5));\n      }\n    }\n  }\n\n  public openDialog() {\n    const dialogRef = this.dialog.open<SearchDialogComponent, SearchDialogData>(SearchDialogComponent, {\n      id: 'arlas-search-dialog',\n      position: {\n        top: this.dialogPositionTop + 'px',\n        left: this.dialogPositionLeft + 'px',\n      },\n      data: {\n        searchContributors: this.searchContributors(),\n        value: this.displayedSearchValue(),\n        collectionsState: this.collectionsState,\n        collections: this.collections,\n        displayCollectionSettings: this.displayCollectionSettings\n      },\n      enterAnimationDuration: '0',\n      exitAnimationDuration: '0'\n    });\n\n    dialogRef.afterClosed().subscribe(event => {\n      if (!!event && !!event.searchValue) {\n        this.collections = event.collections;\n        this.collectionsState = event.collectionsState;\n        this.search(event.searchValue);\n      } else if (!event || event.searchValue === null || event.searchValue === '') {\n        // When nothing is in the search and no text was typed then it is null\n        // If text was typed then removed, it is ''\n        this.clearSearch();\n      }\n    });\n  }\n\n  public clearSearch() {\n    this.displayedSearchValue.set(this.searchPlaceholder());\n\n    const configDebounceTime = this.configService.getValue('arlas.server.debounceCollaborationTime');\n    const debounceDuration = configDebounceTime !== undefined ? configDebounceTime : 750;\n    for (let i = 0; i < this.searchContributors().length; i++) {\n      // Add a timeout between filter removals so that the collaborationBus can handle them\n      setTimeout(() => {\n        this.collaborativeService.removeFilter(this.searchContributors()[i].identifier);\n      }, i * (debounceDuration + 100) /** Multiplication to make sure that there is enough time, no matter the debounceDuration */ * 1.5);\n    }\n  }\n}\n\n/**\n * Structure describing how to represent a search collection in the options dropdown menu\n */\ninterface SearchCollection {\n  label: string;\n  checked: boolean;\n  color: string;\n}\n\n/**\n * Data to give the SearchDialogComponent when opening it\n */\ninterface SearchDialogData {\n  searchContributors: SearchContributor[];\n  value: string;\n  collections: SearchCollection[];\n  collectionsState: Map<string, boolean>;\n  displayCollectionSettings: boolean;\n}\n\n/**\n * Result of the search with autocompletion when multiple search contributors are defined\n */\ninterface SearchResultCollection extends AggregationResponse {\n  collections: {\n    color: string;\n    count: number;\n    collection: string;\n  }[];\n}\n\n@Component({\n  templateUrl: './search-dialog.component.html',\n  styleUrls: ['./search-dialog.component.scss'],\n  imports: [\n    MatIconModule,\n    MatButtonModule,\n    MatMenuModule,\n    ReactiveFormsModule,\n    TranslatePipe,\n    AsyncPipe,\n    GetCollectionDisplayNamePipe,\n    MatTooltipModule,\n    MatCheckboxModule,\n    FormsModule\n  ]\n})\nexport class SearchDialogComponent implements AfterViewInit {\n\n  /**\n   * @description Search contributor\n   */\n  public searchContributors: SearchContributor[];\n\n  public onLastBackSpace: Subject<boolean> = new Subject<boolean>();\n\n  /**\n   * @description Form for the search\n   */\n  public searchCtrl = new FormControl('');\n\n  /**\n   * @description List of results displayed in the autocomplete\n   */\n  public filteredSearch: Observable<SearchResultCollection[]>;\n\n  private readonly keyEvent = new Subject<number>();\n\n  /**\n   * @description Placeholder value as retrieved from the search contributor\n   */\n  public searchPlaceholder: string;\n\n  /**\n   * @description Indicates whether a search request has been launched\n   */\n  public searching = false;\n\n  /**\n * @description Indicates whether display the collections settings button\n */\n  public displayCollectionSettings = false;\n\n  public readonly searchInput = viewChild<ElementRef<HTMLInputElement>>('searchInput');\n\n  public collectionsState: Map<string, boolean> = new Map();\n  public collections: SearchCollection[];\n  public updateAutoCompleteResult = new Subject<void>();\n\n  public constructor(\n    private readonly arlasColorService: ArlasColorService,\n    private readonly collaborativeService: ArlasCollaborativesearchService,\n    private readonly dialogRef: MatDialogRef<SearchDialogComponent>,\n    @Inject(MAT_DIALOG_DATA) public data: SearchDialogData,\n    private readonly translate: TranslateService\n  ) {\n    this.searchContributors = data.searchContributors;\n    this.collectionsState = data.collectionsState;\n    this.collections = data.collections;\n    this.displayCollectionSettings = data.displayCollectionSettings;\n    this.searchPlaceholder = this.translate.instant(this.searchContributors[0]?.getName());\n\n    const autocomplete = this.searchCtrl.valueChanges.pipe(\n      debounceTime(250),\n      startWith(''),\n      filter(search => search !== null),\n      filter(search => search.length > 1),\n      mergeMap(search => this.mergeAutoComplete(search))\n    );\n\n    const noautocomplete = this.searchCtrl.valueChanges.pipe(\n      debounceTime(250),\n      startWith(''),\n      filter(search => search !== null),\n      filter(search => search.length < 2),\n      map(f => [])\n    );\n\n    const nullautocomplete = this.searchCtrl.valueChanges.pipe(\n      debounceTime(250),\n      startWith(''),\n      filter(search => search === null),\n      map(f => [])\n    );\n\n    // Create observable of default value autocomplete to merge it with others\n    if (data.value !== this.searchPlaceholder) {\n      this.searchCtrl.setValue(data.value);\n      const defaultAutocomplete = this.mergeAutoComplete(data.value);\n      this.filteredSearch = noautocomplete.pipe(mergeWith(autocomplete), mergeWith(nullautocomplete), mergeWith(defaultAutocomplete));\n    } else {\n      this.filteredSearch = noautocomplete.pipe(mergeWith(autocomplete), mergeWith(nullautocomplete));\n    }\n    this.filteredSearch.subscribe((val) => {\n      this.searching = false;\n    });\n    this.updateAutoCompleteResult.subscribe(() => {\n      if (this.searchCtrl.value && this.searchCtrl.value !== '') {\n        const defaultAutocomplete = this.mergeAutoComplete(this.searchCtrl.value);\n        this.filteredSearch = noautocomplete.pipe(mergeWith(autocomplete), mergeWith(nullautocomplete), mergeWith(defaultAutocomplete));\n      }\n    });\n  }\n\n  public onKeyUp(event: KeyboardEvent) {\n    if (this.searchCtrl.value !== null) {\n      this.keyEvent.next(this.searchCtrl.value.length);\n    }\n    if (event.key === 'Enter') {\n      this.dialogRef.close(\n        {\n          collections: this.collections,\n          collectionsState: this.collectionsState,\n          searchValue: this.searchCtrl.value?.trim()\n        });\n    }\n  }\n\n  public ngAfterViewInit(): void {\n    // Set focus after template renders\n    this.searchInput()?.nativeElement.focus();\n  }\n  public clickItemSearch(keyAsString: string) {\n    this.dialogRef.close({\n      collections: this.collections,\n      collectionsState: this.collectionsState,\n      searchValue: keyAsString\n    });\n  }\n\n  public clearSearch() {\n    this.searchCtrl.reset();\n  }\n\n  public onChangeCollection(event: MatCheckboxChange) {\n    if (!event.checked) {\n      // Remove filter\n      const contributorChanged = this.searchContributors.find(s => s.collection === event.source.id);\n      if (contributorChanged && this.collaborativeService.getCollaboration(contributorChanged.identifier)) {\n        this.collaborativeService.removeFilter(contributorChanged.identifier);\n      }\n    }\n    this.collectionsState.set(event.source.id, event.checked);\n    this.updateAutoCompleteResult.next();\n  }\n\n  private mergeAutoComplete(search: string): Observable<SearchResultCollection[]> {\n    if (this.searchContributors.length === 1) {\n      return zip(this.searchContributors.map(searchContrib => searchContrib.getAutoCompleteResponse$(search)\n        .pipe(map(resp => resp.elements))))\n        .pipe(map(elements => (elements as any).flat(Infinity).filter((v: AggregationResponse | undefined) => !!v)));\n    } else {\n      return zip(\n        this.searchContributors\n          .filter(searchContrib => this.collectionsState.get(searchContrib.collection))\n          .map(searchContrib => zip(of(searchContrib.collection), searchContrib.getAutoCompleteResponse$(search))\n            .pipe(map(f => f[1].elements?.map(e => ({ ...e, collection: f[0] } as AggregationResponseWithCollection))))\n          )\n      )\n        .pipe(\n          map(elements => (elements as any).flat(Infinity)),\n          map((el: AggregationResponseWithCollection[]) => el.reduce((acc, l) => {\n            if (acc.some(i => i.key_as_string === l.key_as_string)) {\n              const f = acc.find(i => i.key_as_string === l.key_as_string);\n              f?.collections.push({\n                color: this.arlasColorService.getColor(l.collection),\n                count: l.count,\n                collection: l.collection\n              });\n            } else {\n              const collections = [{\n                color: this.arlasColorService.getColor(l.collection),\n                count: l.count,\n                collection: l.collection\n              }];\n              acc.push({ ...l, collections });\n            }\n            return acc;\n          }, new Array<SearchResultCollection>()))\n        );\n    }\n  }\n}\n","<div class=\"arlas-search-container\">\n  <mat-icon class=\"search\">search</mat-icon>\n  <div class=\"search-text\" [class.search-text-empty]=\"displayedSearchValue() === searchPlaceholder()\" (click)=\"openDialog()\">\n    {{ displayedSearchValue() }}\n  </div>\n  @if (displayedSearchValue() !== searchPlaceholder()) {\n    <button mat-icon-button type=\"button\" class=\"close\"\n      (click)=\"clearSearch()\" [matTooltip]=\"'Remove search text' | translate\">\n      <mat-icon class=\"icon\">close</mat-icon>\n    </button>\n  }\n</div>","<form mat-dialog-content class=\"search-dialog\">\n  <div class=\"arlas-search-container\">\n    <span class=\"flex-span\">\n      <mat-icon class=\"search\">search</mat-icon>\n      @if (displayCollectionSettings && searchContributors.length > 1) {\n        <button mat-icon-button [matMenuTriggerFor]=\"menu\">\n          <mat-icon class=\"settings\">settings_outline</mat-icon>\n        </button>\n      }\n    </span>\n    <mat-menu #menu=\"matMenu\" class=\"settings-list\">\n      @for (c of collections; track c) {\n        <mat-checkbox #menuItems id=\"{{ c.label }}\" [(ngModel)]=\"c.checked\" [ngModelOptions]=\"{standalone: true}\"\n            (click)=\"$event.stopPropagation()\" (keydown)=\"$event.stopPropagation()\" [disableRipple]=\"true\"\n            (change)=\"onChangeCollection($event)\">\n          <span class=\"flex-span\">\n            <mat-icon class=\"scale-down\" [style.color]=\"c.color\">fiber_manual_record</mat-icon>\n            {{ c.label | getCollectionDisplayName | translate }}\n          </span>\n        </mat-checkbox>\n      }\n    </mat-menu>\n    <input matInput #searchInput [formControl]=\"searchCtrl\" class=\"full-width-input\" autocomplete=\"off\"\n      placeholder=\"{{searchPlaceholder}}\" (keyup)=\"onKeyUp($event)\" name=\"search\">\n    @if (searchCtrl.value) {\n      <button mat-icon-button type=\"button\" class=\"close\" (click)=\"clearSearch()\">\n        <mat-icon class=\"icon\">close</mat-icon>\n      </button>\n    }\n  </div>\n\n  @if (searchContributors.length > 0) {\n    <ul class=\"autocomplete\">\n      @if (searchContributors.length === 1) {\n        @for (search of filteredSearch | async; track search) {\n          <li class=\"search-option\" [matTooltip]=\"search.key_as_string\" matTooltipPosition=\"after\"\n              (click)=\"clickItemSearch(search.key_as_string)\" (keydown)=\"clickItemSearch(search.key_as_string)\">\n            <span class=\"key\">{{ search.key_as_string }}</span>\n            <span class=\"count\">{{ search.count }}</span>\n          </li>\n        }\n      } @else if (searchContributors.length > 1) {\n        @for (search of filteredSearch | async; track search) {\n          <li class=\"search-option\" [matTooltip]=\"search.key_as_string\" matTooltipPosition=\"after\"\n              (click)=\"clickItemSearch(search.key_as_string)\" (keydown)=\"clickItemSearch(search.key_as_string)\">\n            <span class=\"key\">{{ search.key_as_string }}</span>\n            <div class=\"flex-span collections-count\" >\n              @for (s of search.collections; track s) {\n                <div class=\"flex-span\">\n                  <span class=\"flex-span\">\n                    <mat-icon [matTooltip]=\"s.collection | getCollectionDisplayName | translate\"\n                      [style.color]=\"s.color\"\n                    class=\"chip-collection\">fiber_manual_record</mat-icon>\n                    <span class=\"count\">{{ s.count }}</span>\n                  </span>\n                </div>\n              }\n            </div>\n          </li>\n        }\n      }\n\n      @if ((filteredSearch | async)?.length === 0) {\n        <li class=\"search-warning\">\n          <!-- Under two characters, no search is performed -->\n          @if (searchCtrl.value === null || searchCtrl.value.length < 2) {\n            <span>{{ 'No search' | translate }}</span>\n          } @else if (searchCtrl.value.length >= 2) {\n            <span>{{ (searching ? 'Searching' : 'No results') | translate }}</span>\n          }\n        </li>\n      }\n    </ul>\n  }\n</form>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { ArlasSearchField } from './model/ArlasSearchField';\n\n@Pipe({\n  name: 'excludeType'\n})\nexport class ExcludeTypePipe implements PipeTransform {\n\n  public transform(allField: ArlasSearchField[], type: Set<string>) {\n    return allField.filter(field => !type.has(field.type));\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { Component, inject, Inject, OnInit, ViewEncapsulation } from '@angular/core';\nimport { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatDivider, MatListModule, MatListOption } from '@angular/material/list';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { Aggregation, Search } from 'arlas-api';\nimport { ARLAS_VSET, LayerIdToName } from 'arlas-map';\nimport {\n  ClusterLayerCourceConfig, FeatureLayerSourceConfig, LayerSourceConfig, MapContributor, TopologyLayerSourceConfig\n} from 'arlas-web-contributors';\nimport { projType } from 'arlas-web-core';\nimport FileSaver from 'file-saver';\nimport { NgxSpinnerComponent, NgxSpinnerService } from 'ngx-spinner';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigService } from '../../services/startup/startup.service';\nimport { orderAlphabeticallyArlasSearchFields } from '../../tools/utils';\nimport { AdmonitionCardComponent } from '../admonition-card/admonition-card.component';\nimport { ExcludeTypePipe } from './exclude-type.pipe';\nimport { ArlasSearchField } from './model/ArlasSearchField';\n\n\nexport type ShareLayerSourceConfig = LayerSourceConfig & { visualisationName: string; };\n\n/**\n * This component allows to build a _geoaggregate and/or _geosearch requests through a guiding stepper and download the request result\n * as a json file after clicking on a \"Download\" button\n * Note: This component is binded to ARLAS-wui configuration.\n */\n@Component({\n  selector: 'arlas-share',\n  template: ''\n})\nexport class ShareComponent {\n  private readonly dialog = inject(MatDialog);\n\n  public openDialog(visibilityStatus?: Map<string, boolean>) {\n    this.dialog.open(ShareDialogComponent, { data: visibilityStatus, width: '80vw' });\n  }\n}\n\n\ninterface GeojsonType {\n  source: string;\n  id: string;\n}\n\n@Component({\n  selector: 'arlas-share-dialog',\n  templateUrl: './share-dialog.component.html',\n  styleUrls: ['./share-dialog.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  imports: [\n    MatStepperModule,\n    AdmonitionCardComponent,\n    ReactiveFormsModule,\n    TranslatePipe,\n    MatDivider,\n    NgxSpinnerComponent,\n    MatIconModule,\n    MatButtonModule,\n    MatTooltipModule,\n    MatRadioModule,\n    MatFormFieldModule,\n    MatSelectModule,\n    LayerIdToName,\n    MatListModule,\n    ExcludeTypePipe,\n    MatDialogModule\n  ]\n})\nexport class ShareDialogComponent implements OnInit {\n\n  public sharableLayers: Array<ShareLayerSourceConfig> = new Array();\n  private request: Aggregation | Search | undefined;\n\n  private readonly maxForFeature: number;\n  private readonly maxForTopology: number;\n\n  public precisions = [\n    [1, '5,009.4km x 4,992.6km'],\n    [2, '1,252.3km x 624.1km'],\n    [3, '156.5km x 156km'],\n    [4, '39.1km x 19.5km'],\n    [5, '4.9km x 4.9km'],\n    [6, '1.2km x 609.4m'],\n    [7, '152.9m x 152.4m'],\n    [8, '38.2m x 19m'],\n    [9, '4.8m x 4.8m'],\n    [10, '1.2m x 59.5cm'],\n    [11, '14.9cm x 14.9cm'],\n    [12, '3.7cm x 1.9cm']\n  ];\n\n  public geojsonTypeGroup = new FormGroup({\n    geojsonType: new FormControl<GeojsonType | null>(null, Validators.required)\n  });\n  public paramFormGroup = new FormGroup({\n      precision: new FormControl(0, Validators.required),\n      availableFields: new FormControl<string[]>([], Validators.required),\n      orderField: new FormControl(''),\n      orderDirection: new FormControl('')\n    });\n\n  public selectedFields = new Array<ArlasSearchField>();\n  public selectedOrderField: ArlasSearchField | undefined;\n  public sortDirection: 'asc' | 'desc' = 'asc';\n\n  public allFields = new Array<ArlasSearchField>();\n  public excludedType = new Set<string>();\n  public excludedTypeString = '';\n  public shareConfig: any;\n\n  public layerCollectionMap: Map<string, string> = new Map();\n\n  // for now, the ARLAS-server url is fetched from the config in the startup service.\n  // we should do the same everywhere, otherwise we will have two sources (settings.yaml (it was env.js) & config.json) to configure\n  // the server, and this can lead to incoherences\n  public constructor(\n    @Inject(MAT_DIALOG_DATA) public data: Map<string, boolean>,\n    private readonly collaborativeService: ArlasCollaborativesearchService,\n    private readonly configService: ArlasConfigService,\n    private readonly dialogRef: MatDialogRef<ShareDialogComponent>,\n    private readonly spinner: NgxSpinnerService,\n    private readonly translate: TranslateService,\n    private readonly snackBar: MatSnackBar,\n  ) {\n    this.shareConfig = this.configService.getValue('arlas.web.components.share.geojson');\n    this.maxForFeature = this.shareConfig['max_for_feature'];\n    this.maxForTopology = (\n      this.shareConfig['max_for_topology'] ?\n        this.shareConfig['max_for_topology'] : 1000\n    );\n  }\n\n  public isSelected(field: ArlasSearchField): boolean {\n    return (this.selectedFields || []).some(f => f.label === field.label);\n  }\n  public ngOnInit() {\n    this.shareConfig['sort_excluded_type'].forEach((element: string) => {\n      this.excludedType.add(element);\n      this.excludedTypeString += element + ', ';\n    });\n    this.excludedTypeString = this.excludedTypeString.substr(0, this.excludedTypeString.length - 2);\n    this.sharableLayers = [];\n    this.configService.getValue('arlas.web.contributors').forEach((contrib: any) => {\n      if (contrib.type === 'map') {\n        if (!!this.data) {\n          this.data.forEach((vs, lv) => {\n            const visualisationLayer = lv.split(ARLAS_VSET);\n            if (visualisationLayer.length === 2) {\n              const id = visualisationLayer[1];\n              if (contrib.layers_sources) {\n                const layer = contrib.layers_sources.find((ls: any) => ls.id === id);\n                if (!!layer && vs) {\n                  layer.visualisationName = visualisationLayer[0];\n                  this.sharableLayers.push(layer);\n                  this.layerCollectionMap.set(layer.id, contrib.collection);\n                }\n              }\n            }\n          });\n        }\n      }\n    });\n  }\n\n\n  /**\n   * Switches between dialog steps\n   * @param event The step index\n   */\n  public changeStep(event: StepperSelectionEvent) {\n    /* STEP 2 */\n    if (event.selectedIndex === 1) {\n      const geojsonType = this.geojsonTypeGroup.value.geojsonType as GeojsonType;\n      const layerSource = this.sharableLayers.find(sl => sl.id === geojsonType.id);\n      if (layerSource?.source.startsWith('feature') && !layerSource.source.startsWith('feature-metric')) {\n        this.paramFormGroup.controls.precision.disable();\n        this.paramFormGroup.controls.availableFields.enable();\n        this.request = MapContributor.getFeatureSearch(layerSource as FeatureLayerSourceConfig);\n        this.request.page ??= { size: 0 };\n        this.request.page.size = this.maxForFeature;\n        this.allFields = [];\n        this.selectedFields = [];\n        if (this.allFields.length === 0) {\n          const collection = this.layerCollectionMap.get(layerSource.id);\n          if (!collection) {\n            return;\n          }\n\n          this.collaborativeService.describe(collection).subscribe(\n            description => {\n              const fields = description.properties;\n              if (fields) {\n                Object.keys(fields).forEach(fieldName => {\n                  this.getFieldProperties(fields, fieldName);\n                });\n                this.allFields.sort(orderAlphabeticallyArlasSearchFields);\n              }\n              const search = this.request as Search;\n              if (search.projection?.includes) {\n                search.projection.includes.split(',').forEach(f => {\n                  const selectedField = this.allFields.find(field => field.label === f);\n                  if (selectedField) {\n                    this.selectedFields.push(selectedField);\n                  }\n                });\n                this.paramFormGroup.patchValue({\n                  'availableFields': this.selectedFields.map(v => v.label)\n                });\n                this.paramFormGroup.updateValueAndValidity();\n              }\n            },\n            error => {\n              this.collaborativeService.collaborationErrorBus.next(error);\n            });\n        }\n      } else if (layerSource?.source.startsWith('cluster')) {\n        this.paramFormGroup.controls.precision.enable();\n        this.paramFormGroup.controls.availableFields.disable();\n        this.request = MapContributor.getClusterAggregration(layerSource as ClusterLayerCourceConfig);\n      } else if (layerSource?.source.startsWith('feature-metric')) {\n        this.request = MapContributor.getTopologyAggregration(layerSource as TopologyLayerSourceConfig);\n        this.request.size = this.maxForTopology.toString();\n      }\n    }\n  }\n\n\n  /**\n   * @param geojsonType Param containing info about the chosen layer to export\n   * @description Builds and executes a geosearch/geoaggregate request based on the chosen param of the form\n   * and export the result as json file.\n   * The exported file name is layerId-date-geojson.json\n   */\n  public exportGeojson(geojsonType: GeojsonType | undefined | null) {\n    if (!geojsonType) {\n      return;\n    }\n\n    this.spinner.show('downloadgeojson');\n    const fileDate = Date.now();\n\n    const collection = this.layerCollectionMap.get(geojsonType.id);\n    if (!collection) {\n      return;\n    }\n\n    if (geojsonType.source.startsWith('feature') && !geojsonType.source.startsWith('feature-metric')) {\n      const search = this.request as Search;\n      /** add chosen fields to include in the request */\n      if (!!this.selectedFields && this.selectedFields.length > 0) {\n        const include = new Array<string>();\n        this.selectedFields.forEach(field => {\n          include.push(field.label);\n        });\n        /** incude param is comma separated field paths */\n        search.projection ??= {};\n        search.projection.includes = include.join(',');\n      }\n      /** add sort on chosen fields to the request */\n      if (!!this.selectedOrderField) {\n        search.page ??= {\n          size: this.maxForFeature\n        };\n        search.page.sort = (this.sortDirection === 'desc' ? '-' : '') + this.selectedOrderField.label;\n      }\n\n      this.collaborativeService.resolveButNotFeatureCollection([projType.geosearch, search], this.collaborativeService.collaborations, collection)\n        .subscribe({next: f => {\n          this.saveJson(f, (this.translate.instant(geojsonType.id) + '').toLowerCase().replace(/ /g, '_') + '-' + fileDate + '-geojson.json');\n          this.spinner.hide('downloadgeojson');\n          this.dialogRef.close();\n        },\n        error: () => {\n          this.spinner.hide('downloadgeojson');\n          this.snackBar.open(marker('An error occured'));\n        }\n        });\n    } else {\n      const aggregation = this.request as Aggregation;\n      if (geojsonType.source.startsWith('cluster') && this.paramFormGroup.value.precision) {\n        aggregation.interval ??= { value: 0 };\n        aggregation.interval.value = this.paramFormGroup.value.precision;\n      }\n      this.collaborativeService.resolveButNotFeatureCollection([projType.geoaggregate, [aggregation]],\n        this.collaborativeService.collaborations, collection)\n        .subscribe({next: f => {\n          this.saveJson(f, (this.translate.instant(geojsonType.id) + '').toLowerCase().replaceAll(' ', '_') + '-' + fileDate + '-geojson.json');\n          this.spinner.hide('downloadgeojson');\n          this.dialogRef.close();\n        },\n        error: () => {\n          this.spinner.hide('downloadgeojson');\n          this.snackBar.open(marker('An error occured'));\n        }\n        });\n    }\n  }\n\n  public exportShapefile(geojsonType: GeojsonType | null | undefined) {\n    if (!geojsonType) {\n      return;\n    }\n\n    const collection = this.layerCollectionMap.get(geojsonType.id);\n    if (!collection) {\n      return;\n    }\n\n    this.spinner.show('downloadshapefile');\n    if (geojsonType.source.startsWith('feature') && !geojsonType.source.startsWith('feature-metric')) {\n      this.request = (this.request as Search);\n      /** add chosen fields to include in the request */\n      if (!!this.selectedFields && this.selectedFields.length > 0) {\n        const include = new Array<string>();\n        this.selectedFields.forEach(field => {\n          include.push(field.label);\n        });\n        /** incude param is comma separated field paths */\n        this.request.projection ??= {};\n        this.request.projection.includes = include.join(',');\n      }\n      /** add sort on chosen fields to the request */\n      if (this.selectedOrderField) {\n        this.request.page ??= { size: this.maxForFeature };\n        this.request.page.sort = (this.sortDirection === 'desc' ? '-' : '') + this.selectedOrderField.label;\n      }\n      this.collaborativeService.resolveButNotShapefile([projType.shapesearch, this.request],\n        this.collaborativeService.collaborations, collection)\n        .subscribe({next: (data) => {\n          const blob = new Blob([data], {\n            type: 'application/zip'\n          });\n          const url = window.URL.createObjectURL(blob);\n          window.open(url);\n          this.spinner.hide('downloadshapefile');\n          this.dialogRef.close();\n        },\n        error: () => {\n          this.spinner.hide('downloadshapefile');\n          this.snackBar.open(marker('An error occured'));\n        }\n\n        });\n    } else {\n      this.request = (this.request as Aggregation);\n      if (geojsonType.source.startsWith('cluster') && this.paramFormGroup.value.precision) {\n        this.request.interval ??= { value: 0 };\n        this.request.interval.value = this.paramFormGroup.value.precision;\n      }\n      this.collaborativeService.resolveButNotShapefile([projType.shapeaggregate, [this.request]],\n        this.collaborativeService.collaborations, collection)\n        .subscribe({next: data => {\n          const blob = new Blob([data], {\n            type: 'application/zip'\n          });\n          const url = window.URL.createObjectURL(blob);\n          window.open(url);\n          this.spinner.hide('downloadshapefile');\n          this.dialogRef.close();\n        },\n        error: (err) => {\n          this.spinner.hide('downloadshapefile');\n          this.snackBar.open(marker('An error occured'));\n        }\n        });\n    }\n  }\n\n\n  public onSelectionChange(selectedOptionsList: SelectionModel<MatListOption>) {\n    this.selectedFields = new Array<ArlasSearchField>();\n    selectedOptionsList.selected.forEach(option => {\n      const field = option.getLabel().split('-');\n      this.selectedFields.push(new ArlasSearchField(field[0].trim(), field[1].trim()));\n    });\n  }\n\n  private getFieldProperties(fieldList: any, fieldName: string, parentPrefix?: string) {\n    if (fieldList[fieldName].type === 'OBJECT') {\n      const subFields = fieldList[fieldName].properties;\n      if (subFields) {\n        Object.keys(subFields).forEach(subFieldName => {\n          this.getFieldProperties(subFields, subFieldName, (parentPrefix ? parentPrefix : '') + fieldName + '.');\n        });\n      }\n    } else {\n      this.allFields.push({ label: (parentPrefix ? parentPrefix : '') + fieldName, type: fieldList[fieldName].type });\n    }\n  }\n\n  private saveJson(json: any, filename: string, separator?: string) {\n    const blob = new Blob([JSON.stringify(json, (key, value) => {\n      if (!!separator && value && typeof value === 'object' && !Array.isArray(value)) {\n        // convert keys to snake- or kebab-case (eventually other) according to the separator.\n        // In fact we cannot declare a property with a snake-cased name,\n        // (so in models interfaces properties are are camel case)\n        const replacement: Record<string, any> = {};\n        for (const k in value) {\n          if (Object.hasOwnProperty.call(value, k)) {\n            const matches = k.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g);\n            if (matches) {\n              replacement[\n                matches.map(x => x.toLowerCase()).join(separator)\n              ] = value[k];\n            }\n          }\n        }\n        return replacement;\n      }\n      return value;\n    }, 2)], { type: 'application/json;charset=utf-8' });\n    FileSaver.saveAs(blob, filename);\n  }\n\n}\n","<mat-horizontal-stepper [linear]=\"true\" (selectionChange)=\"changeStep($event)\" class=\"share-stepper\">\n  <mat-step [stepControl]=\"geojsonTypeGroup\">\n    <form [formGroup]=\"geojsonTypeGroup\">\n      <ng-template matStepLabel>{{'Geometry' | translate}}</ng-template>\n      <arlas-admonition-card [title]=\"'Important' | translate\">\n        {{'Downloads geographical data of the chosen layer' | translate}} <br>\n        {{'According to the chosen layer, the downloaded data is either aggregated in a geohash grid or a fetch of 10 000 of actual data records'  | translate}}\n      </arlas-admonition-card>\n      <mat-radio-group class=\"share-radio-group\" formControlName=\"geojsonType\">\n        @for (layer of sharableLayers; track layer) {\n          <mat-radio-button [value]=\"{source: layer.source, id: layer.id}\" class=\"share-radio-button\">{{ layer?.visualisationName | translate}} - {{ layer.id | layerIdToName | translate}}</mat-radio-button>\n        }\n      </mat-radio-group>\n\n      <mat-divider class=\"share-stepper__divider\"></mat-divider>\n\n      <mat-dialog-actions>\n        <button matButton=\"filled\" color=\"primary\" matStepperNext class=\"share-stepper-button\" [disabled]=\"!geojsonTypeGroup.valid\">\n          {{ 'Next' | translate}}</button>\n      </mat-dialog-actions>\n    </form>\n  </mat-step>\n\n  @let geojsonTypeSource = geojsonTypeGroup.value.geojsonType?.source;\n  @if (!geojsonTypeSource?.startsWith('feature-metric')) {\n    <mat-step [stepControl]=\"paramFormGroup\">\n      <form [formGroup]=\"paramFormGroup\">\n        <ng-template matStepLabel>{{'Parameters' | translate}}</ng-template>\n        @if (geojsonTypeSource?.startsWith('cluster')) {\n          <div>\n            <mat-form-field class=\"share-stepper__precision\">\n              <mat-select [placeholder]=\"'Desired precision' | translate\" formControlName=\"precision\" matInput required>\n                @for (val of precisions; track val) {\n                  <mat-option [value]=\"val[0]\">\n                    {{ val[0] }} - <span class=\"share-description\">({{val[1]}})</span>\n                  </mat-option>\n                }\n              </mat-select>\n            </mat-form-field>\n          </div>\n        } @else if (geojsonTypeSource?.startsWith('feature')) {\n          <div class=\"fields-form\">\n            <div class=\"share-feature-block\">\n              <div style=\"flex:3\" class=\"share-title-list\">\n                <mat-label>{{'Available fields' | translate}}</mat-label>\n              </div>\n              <div style=\"flex:1;padding:0 7px;\">\n              </div>\n              <div style=\"flex:3\" class=\"share-title-list\">\n                <mat-label>{{'Selected fields' | translate}}</mat-label>\n              </div>\n            </div>\n            <div class=\"share-feature-block\">\n              <div style=\"max-height: 40vh;overflow:auto;flex:3\">\n                <mat-selection-list role=\"listbox\" formControlName=\"availableFields\" #selectedList (selectionChange)=\"onSelectionChange(selectedList.selectedOptions)\">\n                  @for (field of allFields; track field) {\n                    <mat-list-option [value]=\"field.label\">\n                      <p matLine title=\"{{ field.label }} - {{field.type}}\">\n                        {{ field.label }} - <span class=\"share-description\">{{field.type}}</span>\n                      </p>\n                    </mat-list-option>\n                  }\n                </mat-selection-list>\n              </div>\n              <div class=\"share-feature-button\">\n                <button matButton=\"filled\" color=\"primary\" class=\"text-sm share-button\" matTooltip=\"{{'Select All' | translate}}\" [matTooltipPosition]=\"'above'\" (click)=\"selectedList.selectAll();onSelectionChange(selectedList.selectedOptions)\">\n                  &gt;&gt;\n                </button>\n                <br /><br />\n                <button matButton=\"filled\" color=\"accent\" class=\"text-sm share-button\" matTooltip=\"{{'Remove All' | translate}}\" (click)=\"selectedList.deselectAll();onSelectionChange(selectedList.selectedOptions)\">\n                  &lt;&lt;\n                </button>\n              </div>\n              <div style=\"max-height:40vh;overflow:auto;flex:3\">\n                <mat-list role=\"list\">\n                  @if (selectedFields.length == 0) {\n                    <mat-list-item >{{'No item selected' | translate}}</mat-list-item>\n                  }\n                  @for (field of selectedFields; track field) {\n                    <mat-list-item role=\"listitem\">\n                      <p matLine title=\"{{ field.label }} - {{field.type}}\">\n                        {{ field.label }} - <span class=\"share-description\">{{field.type}}</span>\n                      </p>\n                    </mat-list-item>\n                  }\n                </mat-list>\n              </div>\n            </div>\n            <div class=\"share-feature-block share-feature-block__options\">\n              <mat-form-field class=\"share-form-field\">\n                <mat-select placeholder=\"{{'Order by' | translate}}\" formControlName=\"orderField\" [(value)]=\"selectedOrderField\" panelClass=\"share-order-field\">\n                  <mat-option [value]=\"\">{{'None' | translate}}</mat-option>\n                  @for (field of selectedFields | excludeType:excludedType; track field) {\n                    <mat-option [value]=\"field\">\n                      {{ field.label }}\n                    </mat-option>\n                  }\n                </mat-select>\n                <mat-hint class=\"share-hint\">{{'Types ##types## are excluded' | translate:{ types: excludedTypeString} }}</mat-hint>\n              </mat-form-field>\n\n              <mat-radio-group class=\"share-radio-group\" formControlName=\"orderDirection\" [(ngModel)]=\"sortDirection\">\n                <mat-radio-button [value]=\"'asc'\" class=\"share-radio-button\">ASC</mat-radio-button>\n                <mat-radio-button [value]=\"'desc'\" class=\"share-radio-button\">DESC</mat-radio-button>\n              </mat-radio-group>\n            </div>\n          </div>\n        }\n        <mat-divider class=\"share-stepper__divider\"></mat-divider>\n\n        <mat-dialog-actions class=\"share-stepper-button__container\">\n          <button matButton=\"outlined\" matStepperPrevious class=\"share-stepper-button\">{{ 'Back' | translate}}</button>\n          <button matButton=\"filled\" color=\"primary\" matStepperNext class=\"share-stepper-button\" [disabled]=\"!paramFormGroup.valid\">\n            {{ 'Next' | translate}}</button>\n        </mat-dialog-actions>\n      </form>\n    </mat-step>\n  }\n  <mat-step>\n    <ng-template matStepLabel>{{ 'Download' | translate}}</ng-template>\n    <ngx-spinner [name]=\"'downloadgeojson'\" bdOpacity=\"0.2\" bdColor=\"rgba(51,51,51,0.6)\" size=\"small\" color=\"#fff\"\n      type=\"ball-clip-rotate\" [fullScreen]=\"false\">\n      <p style=\"color: white\"> {{ 'Downloading Geojson file' | translate }} </p>\n    </ngx-spinner>\n    <ngx-spinner [name]=\"'downloadshapefile'\" bdOpacity=\"0.2\" bdColor=\"rgba(51,51,51,0.6)\" size=\"small\" color=\"#fff\"\n      type=\"ball-clip-rotate\" [fullScreen]=\"false\">\n      <p style=\"color: white\"> {{ 'Downloading Shapefile' | translate }} </p>\n    </ngx-spinner>\n    <div class=\"share-block\">\n      <button matButton=\"filled\" color=\"primary\" class=\"export-button\" matTooltip=\"{{'Click to download the chosen layer as a Geojson file' | translate}}\" (click)=\"exportGeojson(geojsonTypeGroup.value.geojsonType)\">\n        <mat-icon>get_app</mat-icon>\n        {{ 'Download Geojson' | translate}}\n      </button>\n\n      <button matButton=\"filled\" color=\"primary\" class=\"export-button\" matTooltip=\"{{'Click to download the chosen layer as a zipped Shapefile' | translate}}\" (click)=\"exportShapefile(geojsonTypeGroup.value.geojsonType)\" >\n        <mat-icon>get_app</mat-icon>\n        {{ 'Download Shapefile' | translate}}\n      </button>\n    </div>\n    <mat-divider class=\"share-stepper__divider\"></mat-divider>\n    <button matButton=\"outlined\" matStepperPrevious class=\"share-stepper-button\">{{ 'Back' | translate}}</button>\n  </mat-step>\n</mat-horizontal-stepper>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { inject, Inject, Injectable, OnDestroy } from '@angular/core';\nimport { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Filter } from 'arlas-api';\nimport { Configuration, FetchAPI, StatusApi, TagRefRequest, UpdateResponse, WriteApi } from 'arlas-tagger-api';\nimport { from, interval, Observable, Subject, Subscription } from 'rxjs';\nimport { GET_OPTIONS, GetOptions } from '../../tools/utils';\nimport { AuthentificationService } from '../authentification/authentification.service';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasSettingsService } from '../settings/arlas.settings.service';\nimport { ArlasConfigService } from '../startup/startup.service';\n\n@Injectable()\nexport class ArlasTaggerWriteApi extends WriteApi {\n  public constructor(@Inject('CONF') conf: Configuration, @Inject('base_path') basePAth: string,\n    @Inject('fetch') fetch: FetchAPI) {\n    super(conf, basePAth, fetch);\n  }\n}\n\n@Injectable()\nexport class ArlasTaggerStatusApi extends StatusApi {\n  public constructor(@Inject('CONF') conf: Configuration, @Inject('base_path') basePAth: string,\n    @Inject('fetch') fetch: FetchAPI) {\n    super(conf, basePAth, fetch);\n  }\n}\n\n/** Constants used to fill up our data base. */\n@Injectable()\nexport class ArlasTagService implements OnDestroy {\n\n  public taggableFields: Array<any> = [];\n  public isProcessing = false;\n  public status: Subject<Map<string, boolean>> = new Subject<Map<string, boolean>>();\n  public processStatus = new Map<string, UpdateResponse>();\n  private taggerApi!: ArlasTaggerWriteApi;\n  private statusApi!: ArlasTaggerStatusApi;\n  private options!: GetOptions;\n\n  private tagger: any;\n  private onGoingSubscription: Map<string, Subscription> = new Map<string, Subscription>();\n\n  private readonly getOptions = inject(GET_OPTIONS);\n\n  private readonly translate = inject(TranslateService);\n  public constructor(\n    private readonly collaborativeSearchService: ArlasCollaborativesearchService,\n    private readonly configService: ArlasConfigService,\n    private readonly snackBar: MatSnackBar,\n    private readonly authService: AuthentificationService,\n    private readonly arlasSettingsService: ArlasSettingsService\n  ) {\n    // for now, the ARLAS-tagger url  and collection name are fetched from the config.\n    // we should keep doing it for now, otherwise we will have two sources (settings.yaml (it was env.js) & config.json) to configure\n    // the taggger, and this can lead to incoherences\n    this.setOptions(this.getOptions());\n    const configuration: Configuration = new Configuration();\n    this.tagger = this.configService.getValue('arlas.tagger');\n    const settings = this.arlasSettingsService.settings;\n    if (this.tagger && this.tagger.url) {\n      this.taggerApi = new ArlasTaggerWriteApi(configuration, this.tagger.url, window.fetch);\n      this.statusApi = new ArlasTaggerStatusApi(configuration, this.tagger.url, window.fetch);\n      const useAuthent = !!settings && !!settings.authentication && !!settings.authentication.use_authent;\n      if (useAuthent) {\n        this.authService.canActivateProtectedRoutes.subscribe(isActivable => {\n          if (isActivable) {\n            this.setOptions({\n              headers: {\n                Authorization: 'bearer ' + this.authService.accessToken\n              }\n            });\n          }\n        });\n      }\n    }\n  }\n\n  public addTag(path: string, value: string | number, propagateField?: string, propagateUrl?: string, operationName?: string) {\n    if (!operationName) {\n      operationName = 'TAG ' + Math.round(Date.now() / 1000);\n    }\n    const data = this.createPayload(operationName, path, value);\n    if (propagateField) {\n      data.propagation = this.createPropagationPayload(propagateField, propagateUrl);\n    }\n    this.postTagData(data);\n  }\n\n  public removeTag(path: string, value?: string | number, propagateField?: string, propagateUrl?: string, operationName?: string) {\n    if (!operationName) {\n      operationName = 'UNTAG ' + Math.round(Date.now() / 1000);\n    }\n    const data = this.createPayload(operationName, path, value);\n    if (propagateField) {\n      data.propagation = this.createPropagationPayload(propagateField, propagateUrl);\n    }\n    this.postTagData(data, 'untag');\n  }\n\n  public createPayload(label: string, path: string, value?: string | number): { search: any; tag?: any; label?: string; propagation?: any; } {\n\n    const filters = new Array<Filter>();\n    this.collaborativeSearchService.collaborations.forEach(element => {\n      if (!!element.filters) {\n        element.filters.forEach((filter, collection) => {\n          filters.push(filter[0]);\n\n        });\n      }\n    });\n    const filter = this.collaborativeSearchService.getFinalFilter(filters);\n\n    const data: { search: any; tag?: any; propagation?: any; label?: string; } = { search: {} };\n    data.search = { filter: filter };\n    const tag: { path: string; value?: string | number; } = { path: '' };\n    tag.path = path;\n    if (value) {\n      tag.value = value;\n    }\n    data.tag = tag;\n    data.label = label;\n    return data;\n  }\n\n  public createPropagationPayload(propagateField: string, propagateUrl?: string) {\n    const propagation: { field: string; filter?: any; } = { field: '' };\n    propagation.field = propagateField;\n    if (propagateUrl) {\n      const dataModel = this.collaborativeSearchService.dataModelBuilder(decodeURI(propagateUrl));\n      const filters = new Array<Filter>();\n\n      Object.values(dataModel).forEach((element: any) => {\n        filters.push(element.filter);\n      });\n      propagation.filter = this.collaborativeSearchService.getFinalFilter(filters);\n    }\n    return propagation;\n  }\n\n  public postTagData(data: any, mode: string = 'tag') {\n\n    const snackConfig = new MatSnackBarConfig();\n    snackConfig.duration = 5000;\n    snackConfig.verticalPosition = 'top';\n\n    this.isProcessing = true;\n\n    if (mode === 'tag') {\n      from(this.taggerApi.tagPost(this.tagger.collection, data, false, this.options)).subscribe(\n        (response: UpdateResponse) => {\n          this.snackBar.open('Tag task running', '', snackConfig);\n          this.status.next(new Map<string, boolean>().set(mode, true));\n          const subscription = interval(5000).subscribe(() => {\n            this.followStatus(response);\n          });\n          this.onGoingSubscription.set(response.id, subscription);\n        },\n        error => {\n          this.snackBar.open(this.translate.instant('Error : the tag has not been added'), '', snackConfig);\n          this.isProcessing = false;\n          this.collaborativeSearchService.collaborationErrorBus.next(error);\n\n          this.status.next(new Map<string, boolean>().set(mode, false));\n        },\n        () => {\n          this.isProcessing = false;\n        }\n      );\n    } else {\n      from(this.taggerApi.untagPost(this.tagger.collection, data, false, this.options)).subscribe(\n        (response: UpdateResponse) => {\n          this.snackBar.open(this.translate.instant('Untag task running'), '', snackConfig);\n          this.status.next(new Map<string, boolean>().set(mode, true));\n          const subscription = interval(5000).subscribe(() => {\n            this.followStatus(response);\n          });\n          this.onGoingSubscription.set(response.id, subscription);\n        },\n        error => {\n          this.snackBar.open('Error : the tag has not been removed', '', snackConfig);\n          this.isProcessing = false;\n          this.collaborativeSearchService.collaborationErrorBus.next(error);\n\n          this.status.next(new Map<string, boolean>().set(mode, false));\n        },\n        () => {\n          this.isProcessing = false;\n        }\n      );\n    }\n  }\n\n  public followStatus(response: any) {\n    from(this.statusApi.taggingGet(this.tagger.collection, response.id, false, this.options)).subscribe(\n      (response: UpdateResponse) => {\n        this.processStatus.set(response.id, response);\n        if (response.progress === 100) {\n          this.onGoingSubscription.get(response.id)?.unsubscribe();\n        }\n      }\n    );\n  }\n\n  public list(): Observable<TagRefRequest[]> {\n    return from(this.statusApi.taggingGetList(this.tagger.collection, false, this.options));\n  }\n\n  public unfollowStatus(responseId: string) {\n    this.processStatus.delete(responseId);\n  }\n  public setOptions(options: GetOptions): void {\n    this.options = options;\n  }\n\n  public ngOnDestroy(): void {\n    this.onGoingSubscription.forEach((subscription, k) => {\n      subscription.unsubscribe();\n    });\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { DatePipe, DecimalPipe, KeyValuePipe } from '@angular/common';\nimport { Component, ElementRef, Input, OnInit, Output, Renderer2, ViewEncapsulation } from '@angular/core';\nimport { FormControl, FormGroup, FormsModule, ReactiveFormsModule, UntypedFormControl, Validators } from '@angular/forms';\nimport { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';\nimport { MatButton, MatButtonModule } from '@angular/material/button';\nimport { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { MatFormField } from '@angular/material/form-field';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatInput } from '@angular/material/input';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { MatProgressSpinner } from '@angular/material/progress-spinner';\nimport { MatOption, MatSelect, MatSelectChange } from '@angular/material/select';\nimport {\n  MatCell,\n  MatCellDef,\n  MatColumnDef,\n  MatHeaderCell,\n  MatHeaderCellDef,\n  MatHeaderRow,\n  MatHeaderRowDef,\n  MatRow,\n  MatRowDef,\n  MatTable\n} from '@angular/material/table';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Aggregation, AggregationResponse, AggregationsRequest } from 'arlas-api';\nimport { TagRefRequest } from 'arlas-tagger-api';\nimport { from, Subject } from 'rxjs';\nimport { ArlasBookmarkService } from '../../services/bookmark/bookmark.service';\nimport { ArlasCollaborativesearchService } from '../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigService } from '../../services/startup/startup.service';\nimport { ArlasTagService } from '../../services/tag/tag.service';\nimport { ConfirmModalComponent } from '../confirm-modal/confirm-modal.component';\n\n/**\n * This component allows to tag your selected data (documents). The tag value is set on taggable fields.\n * The list of taggable fields is available on the dialog`.\n * Note : This component is binded to ARLAS-wui configuration.\n */\n@Component({\n    selector: 'arlas-tag',\n    templateUrl: './tag.component.html',\n    styleUrls: ['./tag.component.scss'],\n    encapsulation: ViewEncapsulation.None,\n    imports: [MatIcon, MatProgressBar, DecimalPipe, KeyValuePipe, MatButtonModule]\n})\nexport class TagComponent {\n  /**\n   * @Input : Angular\n   * @description Name of the icon (Material icons)\n   */\n  @Input() public icon = 'local_offer';\n  /**\n   * @Output : Angular\n   * @description A subject that emits the tag string\n   */\n  @Output() public tagEvent: Subject<string> = new Subject<string>();\n\n  public dialogRef?: MatDialogRef<TagDialogComponent>;\n  public dialogManagementRef?: MatDialogRef<TagManagementDialogComponent>;\n  public hoveredDiv = '';\n\n  public constructor(\n    private readonly dialog: MatDialog,\n    public tagService: ArlasTagService\n  ) { }\n\n  public openDialog() {\n    this.dialogRef = this.dialog.open(TagDialogComponent, { data: null, panelClass: 'arlas-tag-dialog' });\n    this.dialogRef.componentInstance.tagEvent.subscribe(value => this.tagEvent.next(value));\n  }\n\n  public openManagement() {\n    this.dialogManagementRef = this.dialog.open(TagManagementDialogComponent, { data: null, panelClass: 'arlas-tag-dialog' });\n  }\n\n  public removeProgress(itemId: string) {\n    this.tagService.unfollowStatus(itemId);\n  }\n\n}\n\n@Component({\n  selector: 'arlas-tag-dialog',\n  templateUrl: './tag-dialog.component.html',\n  styleUrls: ['./tag-dialog.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  imports: [\n    FormsModule, ReactiveFormsModule, MatFormField, MatInput, MatSelect, MatOption,\n    MatAutocompleteTrigger, MatAutocomplete, MatCheckbox, MatButton, MatProgressBar, TranslatePipe]\n})\nexport class TagDialogComponent implements OnInit {\n  /**\n   * @Output : Angular\n   * @description A subject that emits the tag string\n   */\n  @Output() public tagEvent: Subject<string> = new Subject<string>();\n\n  private server: any;\n  public tagFormGroup = new FormGroup({\n    operationName: new FormControl(''),\n    fieldToTag: new FormControl('', Validators.required),\n    valueOfTag: new FormControl('', Validators.required),\n    propagation: new FormControl(''),\n    onField: new FormControl({ value: '', disabled: true }),\n    linkTo: new FormControl({ value: '', disabled: true })\n  });\n  public taggableFields: Array<any> = [];\n  public keywordFields: Array<any> = [];\n  public bookmarks: Array<any> = [];\n  public existingTags: Array<string> = [];\n\n  public confirmDialogRef?: MatDialogRef<ConfirmModalComponent>;\n\n  public constructor(\n    public tagService: ArlasTagService,\n    private readonly configService: ArlasConfigService,\n    private readonly collaborativeSearchService: ArlasCollaborativesearchService,\n    private readonly dialog: MatDialog,\n    private readonly bookmarkService: ArlasBookmarkService,\n    private readonly dialogRef: MatDialogRef<TagDialogComponent>\n  ) {\n    this.server = this.configService.getValue('arlas.server');\n    this.tagService.status.subscribe(status => {\n      status.forEach((success, mode) => {\n        if (success) {\n          this.dialogRef.close();\n          this.tagEvent.next(mode);\n        }\n      });\n    });\n    this.bookmarkService.bookMarkMap.forEach((v, k) => {\n      this.bookmarks.push(v);\n    });\n  }\n\n  public ngOnInit() {\n    this.collaborativeSearchService.describe(this.server.collection.name).subscribe(\n      description => {\n        const fields = description.properties;\n        if (fields) {\n          Object.keys(fields).forEach(fieldName => {\n            this.getFieldProperties(fields, fieldName);\n          });\n        }\n      },\n      error => {\n        this.collaborativeSearchService.collaborationErrorBus.next(error);\n      });\n  }\n\n  public fieldChange(event: MatSelectChange) {\n    this.existingTags = [];\n    const aggregation: Aggregation = {\n      type: Aggregation.TypeEnum.Term,\n      field: event.value,\n      size: '10'\n    };\n\n    const aggreationRequest: AggregationsRequest = {\n      aggregations: [aggregation]\n    };\n\n    from(this.collaborativeSearchService.getExploreApi().aggregatePost(this.server.collection.name, aggreationRequest))\n      .subscribe((response: AggregationResponse) => {\n        if (response.elements) {\n          response.elements.forEach(elem => {\n            this.existingTags.push(elem.key_as_string);\n          });\n        }\n      });\n  }\n\n  /**\n   * Adds a tag on a taggable field.\n   * @param path Taggable field path\n   * @param value Value of the tag\n   */\n  public addTag() {\n    this.tagService.addTag(\n      this.tagFormGroup.value.fieldToTag as string,\n      this.tagFormGroup.value.valueOfTag as string,\n      this.tagFormGroup.value.onField ?? undefined,\n      this.tagFormGroup.value.linkTo ?? undefined,\n      this.tagFormGroup.value.operationName ?? undefined\n    );\n  }\n\n  /**\n   * Removes a tag from a taggable field. If the tag value is not specified, all the tags of this field are removed\n   * @param path Taggable field path\n   * @param value Value of the tag\n   */\n  public removeTag() {\n    if (this.tagFormGroup.value.valueOfTag) {\n      this.tagService.removeTag(\n        this.tagFormGroup.value.fieldToTag as string,\n        this.tagFormGroup.value.valueOfTag as string,\n        this.tagFormGroup.value.onField ?? undefined,\n        this.tagFormGroup.value.linkTo ?? undefined\n      );\n    } else {\n      this.confirmDialogRef = this.dialog.open(ConfirmModalComponent, { data: {\n        confirmHTMLMessage: '<strong>Remove</strong> all tags from `' + this.tagFormGroup.value.fieldToTag + '` ?'\n      }});\n\n      this.confirmDialogRef.afterClosed().subscribe(result => {\n        if (result) {\n          this.tagService.removeTag(this.tagFormGroup.value.fieldToTag as string);\n        }\n        this.confirmDialogRef = undefined;\n      });\n    }\n  }\n\n  public propagationChange(propagate: boolean) {\n    if (propagate) {\n      this.tagFormGroup.setControl('onField', new UntypedFormControl('', Validators.required));\n      this.tagFormGroup.setControl('linkTo', new UntypedFormControl(''));\n      this.tagFormGroup.controls['onField'].enable();\n      this.tagFormGroup.controls['linkTo'].enable();\n    } else {\n      this.tagFormGroup.setControl('onField', new UntypedFormControl(''));\n      this.tagFormGroup.setControl('linkTo', new UntypedFormControl(''));\n      this.tagFormGroup.controls['onField'].disable();\n      this.tagFormGroup.controls['linkTo'].disable();\n    }\n  }\n\n  private getFieldProperties(fieldList: any, fieldName: string, parentPrefix?: string) {\n    if (fieldList[fieldName].type === 'OBJECT') {\n      const subFields = fieldList[fieldName].properties;\n      if (subFields) {\n        Object.keys(subFields).forEach(subFieldName => {\n          this.getFieldProperties(subFields, subFieldName, (parentPrefix ? parentPrefix : '') + fieldName + '.');\n        });\n      }\n    } else {\n      if (fieldList[fieldName].taggable) {\n        this.taggableFields.push({ label: (parentPrefix ? parentPrefix : '') + fieldName, type: fieldList[fieldName].type });\n      } else if (fieldList[fieldName].type === 'KEYWORD') {\n        this.keywordFields.push({ label: (parentPrefix ? parentPrefix : '') + fieldName, type: fieldList[fieldName].type });\n      }\n    }\n  }\n}\n\n@Component({\n  selector: 'arlas-management-tag-dialog',\n  templateUrl: './tag-management-dialog.component.html',\n  styleUrls: ['./tag-management-dialog.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  imports: [\n    MatTable, MatColumnDef, MatHeaderCellDef, MatHeaderCell, MatCellDef, MatCell, MatCheckbox,\n    MatHeaderRowDef, MatHeaderRow, MatRowDef, MatRow, MatProgressSpinner, MatButton, DatePipe, TranslatePipe]\n})\nexport class TagManagementDialogComponent {\n  public tagsRef: TagRefRequest[] = new Array<TagRefRequest>();\n\n  public columnsToDisplay = ['checked', 'date', 'name', 'path', 'tagValue', 'propagation', 'action'];\n  public isLoading = true;\n  public selectedsTag: TagRefRequest[] = new Array<TagRefRequest>();\n\n  public constructor(\n    private readonly tagService: ArlasTagService,\n    private readonly elem: ElementRef<HTMLElement>,\n    private readonly renderer: Renderer2,\n    private readonly dialogRef: MatDialogRef<TagManagementDialogComponent>\n  ) {\n    this.tagService.list().subscribe(data => {\n      this.isLoading = false;\n      data.sort((a, b) => {\n        if (!a.creation_time || !b.creation_time) {\n          return 1;\n        }\n        return a.creation_time > b.creation_time ? 1 : -1;\n      });\n      this.tagsRef = data;\n    });\n  }\n\n  public selectTag(event: MatCheckboxChange, index: number, tag: TagRefRequest) {\n    this.elem.nativeElement.querySelectorAll('.tags-table-row').forEach((elem, i) => {\n      if (index === i) {\n        if (event.checked) {\n          this.selectedsTag.push(tag);\n          this.renderer.addClass(elem, 'active-tag');\n        } else {\n          this.selectedsTag.splice(this.selectedsTag.indexOf(tag), 1);\n          this.renderer.removeClass(elem, 'active-tag');\n        }\n      }\n    });\n  }\n\n  public replay() {\n    this.selectedsTag.forEach((tagRef: TagRefRequest) => {\n      const payload = {\n        search: tagRef.search,\n        tag: tagRef.tag,\n        label: tagRef.label,\n        propagation: tagRef.propagation\n      };\n      this.tagService.postTagData(payload, 'tag');\n    });\n    this.dialogRef.close();\n  }\n\n}\n","<div class=\"arlas-tag-box\">\n  @for (process of tagService.processStatus | keyvalue; track process) {\n    <div class=\"arlas-tag-notification\" (mouseenter)=\"hoveredDiv = process.value.id\" (mouseleave)=\"hoveredDiv = ''\">\n      @let progress = process.value.progress;\n      <div class=\"arlas-tag-notification-content\" id=\"tag-progress-{{process.value.id}}\" [class.arlas-tag-active]=\"hoveredDiv === process.value.id ? true : false\">\n        <span>{{process.value.label}}</span>\n        @if (progress === 0 || progress === undefined) {\n          <mat-icon class=\"arlas-tag-notification-icon-blue\">watch_later</mat-icon>\n        } @else if (progress > 0 && progress < 100) {\n          <span>{{progress | number:'1.0-0'}} %</span>\n        } @else if (progress == 100) {\n          <mat-icon class=\"arlas-tag-notification-icon-green arlas-tag-hide\">check_circle</mat-icon>\n          <button mat-icon-button (click)=\"removeProgress(process.value.id)\" class=\"arlas-tag-notification-icon-grey arlas-tag-show\">\n            <mat-icon>cancel</mat-icon>\n          </button>\n        }\n      </div>\n      @if (progress && progress > 0 && progress < 100) {\n        <mat-progress-bar [mode]=\"'indeterminate'\" [color]=\"'accent'\"></mat-progress-bar>\n      }\n    </div>\n  }\n</div>\n","<div [formGroup]=\"tagFormGroup\" style=\"display:flex;flex-direction: column;justify-content: space-around;min-width:300px;\">\n  <mat-form-field>\n    <input matInput placeholder=\"{{ 'Operation name' | translate }}\" formControlName=\"operationName\" #operationName>\n  </mat-form-field>\n  <mat-form-field class=\"tag-form-field\">\n    <mat-select matInput placeholder=\"{{ 'Field to tag' | translate }}\" formControlName=\"fieldToTag\" panelClass=\"tag-fields\" #fieldtotag (selectionChange)=\"fieldChange($event)\">\n      @for (field of taggableFields; track field) {\n        <mat-option [value]=\"field.label\">\n          {{ field.label }} -\n          <span class=\"tag-description\">{{field.type}}</span>\n        </mat-option>\n      }\n    </mat-select>\n  </mat-form-field>\n  <mat-form-field>\n    <input matInput placeholder=\"{{ 'Value of tag' | translate }}\" formControlName=\"valueOfTag\" #valueoftag [matAutocomplete]=\"auto\">\n    <mat-autocomplete #auto=\"matAutocomplete\">\n      @for (tag of existingTags; track tag) {\n        <mat-option [value]=\"tag\">\n          {{tag}}\n        </mat-option>\n      }\n    </mat-autocomplete>\n  </mat-form-field>\n\n  <mat-checkbox (change)=\"propagationChange(propagation.checked)\" formControlName=\"propagation\" #propagation>{{ 'With propagation' | translate }}</mat-checkbox>\n  @if (propagation.checked) {\n    <mat-form-field>\n      <mat-select matInput placeholder=\"{{ 'On field' | translate }}\" formControlName=\"onField\" panelClass=\"tag-fields\" #onfield>\n        @for (field of keywordFields; track field) {\n          <mat-option [value]=\"field.label\">\n            {{ field.label }}\n          </mat-option>\n        }\n      </mat-select>\n    </mat-form-field>\n\n    <mat-form-field>\n      <mat-select matInput placeholder=\"{{ 'Link to' | translate }}\" formControlName=\"linkTo\" panelClass=\"tag-fields\" #linkTo>\n        @for (bookmark of bookmarks; track bookmark) {\n          <mat-option [value]=\"bookmark.url\">\n            {{ bookmark.name }}\n          </mat-option>\n        }\n      </mat-select>\n    </mat-form-field>\n  }\n\n  <div style=\"display:flex;flex-direction:row;justify-content:space-around;padding-top:10px;\">\n    <button matButton=\"filled\" [disabled]=\"tagService.isProcessing || !tagFormGroup.valid \" color=\"primary\" (click)=\"addTag()\">{{ 'Add Tag' | translate }}</button>\n    <button matButton=\"filled\" [disabled]=\"tagService.isProcessing || fieldtotag.empty || (propagation.checked && !tagFormGroup.valid)\" color=\"warn\" (click)=\"removeTag()\">{{ 'Remove Tag' | translate }}</button>\n  </div>\n  @if (tagService.isProcessing) {\n    <mat-progress-bar class=\"tag-progress\" [color]=\"'accent'\" [mode]=\"'indeterminate'\"></mat-progress-bar>\n  }\n</div>\n","<mat-table [dataSource]=\"tagsRef\" class=\"tags-table-items\">\n  <ng-container matColumnDef=\"checked\">\n    <mat-header-cell *matHeaderCellDef>#</mat-header-cell>\n    <mat-cell *matCellDef=\"let tagRef; let i = index\">\n      <mat-checkbox (change)=\"selectTag($event, i, tagRef)\" value=\"{{tagRef.id}}\"> </mat-checkbox>\n    </mat-cell>\n  </ng-container>\n\n  <ng-container matColumnDef=\"date\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Date' | translate }}</mat-header-cell>\n    <mat-cell *matCellDef=\"let tagRef\">{{tagRef.creationTime | date: 'dd/MM/yyyy HH:mm:ss'}}</mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"name\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Operation Name' | translate }}</mat-header-cell>\n    <mat-cell *matCellDef=\"let tagRef\">{{tagRef.label}}</mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"path\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Field tagged' | translate }}</mat-header-cell>\n    <mat-cell *matCellDef=\"let tagRef\">{{tagRef.tag.path}}</mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"tagValue\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Value of tag' | translate }}</mat-header-cell>\n    <mat-cell *matCellDef=\"let tagRef\">{{tagRef.tag.value}}</mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"propagation\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Propagation field' | translate }}</mat-header-cell>\n    <mat-cell *matCellDef=\"let tagRef\">{{tagRef.propagation?.field}}</mat-cell>\n  </ng-container>\n  <ng-container matColumnDef=\"action\">\n    <mat-header-cell *matHeaderCellDef>{{ 'Action' | translate }}</mat-header-cell>\n    <mat-cell *matCellDef=\"let tagRef\">{{tagRef.action}}</mat-cell>\n  </ng-container>\n\n  <mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></mat-header-row>\n  <mat-row class=\"tags-table-row\" *matRowDef=\"let myRowData; columns: columnsToDisplay\"></mat-row>\n</mat-table>\n\n@if (isLoading) {\n  <div class=\"tags_spinner\">\n    <mat-progress-spinner\n      color=\"primary\"\n      mode=\"indeterminate\"\n      [diameter]=\"50\">\n    </mat-progress-spinner>\n  </div>\n}\n\n<div style=\"display:flex;flex-direction:row;justify-content:space-around;padding-top:10px;\">\n  <button matButton=\"outlined\" color=\"primary\" [disabled]=\"selectedsTag.length === 0\" (click)=\"replay()\">{{ 'Replay' | translate }}</button>\n</div>\n\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { inject } from '@angular/core';\nimport { OwlDateTimeIntl } from '@danielmoncada/angular-datetime-picker';\nimport { TranslateService } from '@ngx-translate/core';\n\n// here is the default text string\nexport class ArlasTranslateIntl extends OwlDateTimeIntl {\n  private readonly translateService = inject(TranslateService);\n\n  /** A label for the up second button (used by screen readers).  */\n  public upSecondLabel = this.translateService.instant('Datepicker.upSecondLabel');\n\n  /** A label for the down second button (used by screen readers).  */\n  public downSecondLabel = this.translateService.instant('Datepicker.downSecondLabel');\n\n  /** A label for the up minute button (used by screen readers).  */\n  public upMinuteLabel = this.translateService.instant('Datepicker.upMinuteLabel');\n\n  /** A label for the down minute button (used by screen readers).  */\n  public downMinuteLabel = this.translateService.instant('Datepicker.downMinuteLabel');\n\n  /** A label for the up hour button (used by screen readers).  */\n  public upHourLabel = this.translateService.instant('Datepicker.upHourLabel');\n\n  /** A label for the down hour button (used by screen readers).  */\n  public downHourLabel = this.translateService.instant('Datepicker.downHourLabel');\n\n  /** A label for the previous month button (used by screen readers). */\n  public prevMonthLabel = this.translateService.instant('Datepicker.prevMonthLabel');\n\n  /** A label for the next month button (used by screen readers). */\n  public nextMonthLabel = this.translateService.instant('Datepicker.nextMonthLabel');\n\n  /** A label for the previous year button (used by screen readers). */\n  public prevYearLabel = this.translateService.instant('Datepicker.prevYearLabel');\n\n  /** A label for the next year button (used by screen readers). */\n  public nextYearLabel = this.translateService.instant('Datepicker.nextYearLabel');\n\n  /** A label for the previous multi-year button (used by screen readers). */\n  public prevMultiYearLabel = this.translateService.instant('Datepicker.prevMultiYearLabel');\n\n  /** A label for the next multi-year button (used by screen readers). */\n  public nextMultiYearLabel = this.translateService.instant('Datepicker.nextMultiYearLabel');\n\n  /** A label for the 'switch to month view' button (used by screen readers). */\n  public switchToMonthViewLabel = this.translateService.instant('Datepicker.switchToMonthViewLabel');\n\n  /** A label for the 'switch to year view' button (used by screen readers). */\n  public switchToMultiYearViewLabel = this.translateService.instant('Datepicker.switchToMultiYearViewLabel');\n\n  /** A label for the cancel button */\n  public cancelBtnLabel = this.translateService.instant('Datepicker.cancelBtnLabel');\n\n  /** A label for the set button */\n  public setBtnLabel = this.translateService.instant('Datepicker.setBtnLabel');\n\n  /** A label for the range 'from' in picker info */\n  public rangeFromLabel = this.translateService.instant('Datepicker.rangeFromLabel');\n\n  /** A label for the range 'to' in picker info */\n  public rangeToLabel = this.translateService.instant('Datepicker.rangeToLabel');\n\n  /** A label for the hour12 button (AM) */\n  public hour12AMLabel = this.translateService.instant('Datepicker.hour12AMLabel');\n\n  /** A label for the hour12 button (PM) */\n  public hour12PMLabel = this.translateService.instant('Datepicker.hour12PMLabel');\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { inject, InjectionToken } from '@angular/core';\nimport { OwlDateTimeFormats } from '@danielmoncada/angular-datetime-picker';\nimport { OwlMomentDateTimeAdapterOptions } from '@danielmoncada/angular-datetime-picker-moment-adapter';\n\nexport const DEFAULT_OWL_DATE_TIME_FORMATS_VALUE = {\n  parseInput: 'l LT',\n  fullPickerInput: 'l LT',\n  datePickerInput: 'l',\n  timePickerInput: 'LT',\n  monthYearLabel: 'MMM YYYY',\n  dateA11yLabel: 'LL',\n  monthYearA11yLabel: 'MMMM YYYY'\n};\n\nexport const DEFAULT_OWL_DATE_TIME_FORMATS = new InjectionToken<OwlDateTimeFormats>(\n  'DEFAULT_OWL_DATE_TIME_FORMATS',\n  {\n    factory: () => (DEFAULT_OWL_DATE_TIME_FORMATS_VALUE)\n  }\n);\n\nexport const ARLAS_DATE_TIME_FORMATS = new InjectionToken<OwlDateTimeFormats>(\n  'ARLAS_DATE_TIME_FORMATS',\n  {\n    factory: () => inject(DEFAULT_OWL_DATE_TIME_FORMATS)\n  }\n);\n\nexport const ARLAS_OWL_MOMENT_ADAPTER_OPTIONS_OVERRIDE =\n  new InjectionToken<Partial<OwlMomentDateTimeAdapterOptions>>(\n    'ARLAS_OWL_MOMENT_ADAPTER_OPTIONS_OVERRIDE',\n    {\n      providedIn: 'root',\n      factory: () => ({})\n    }\n  );\n\nexport const ARLAS_OWL_MOMENT_ADAPTER_OPTIONS =\n  new InjectionToken<OwlMomentDateTimeAdapterOptions>(\n    'ARLAS_OWL_MOMENT_ADAPTER_OPTIONS',\n    {\n      providedIn: 'root',\n      factory: () => {\n        const override = inject(ARLAS_OWL_MOMENT_ADAPTER_OPTIONS_OVERRIDE);\n\n        return {\n          useUtc: false,\n          parseStrict: false,\n          ...override\n        };\n      }\n    }\n  );\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, computed, inject, input, OnChanges, signal, SimpleChanges } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n  DateTimeAdapter, OWL_DATE_TIME_FORMATS, OWL_DATE_TIME_LOCALE, OwlDateTimeModule, OwlNativeDateTimeModule\n} from '@danielmoncada/angular-datetime-picker';\nimport {\n  MomentDateTimeAdapter, OWL_MOMENT_DATE_TIME_ADAPTER_OPTIONS, OwlMomentDateTimeModule\n} from '@danielmoncada/angular-datetime-picker-moment-adapter';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { HistogramContributor } from 'arlas-web-contributors';\nimport moment from 'moment';\nimport { ArlasStartupService } from '../../../services/startup/startup.service';\nimport { TimelineConfiguration } from '../timeline/timeline.utils';\nimport { ARLAS_DATE_TIME_FORMATS, ARLAS_OWL_MOMENT_ADAPTER_OPTIONS } from './date-time-formats.token';\n\n/**\n * The component allows to set start/end values of a temporal selection on the timeline\n */\n@Component({\n  selector: 'arlas-tool-date-picker',\n  templateUrl: './date-picker.component.html',\n  styleUrls: ['./date-picker.component.scss'],\n  providers: [\n    {\n      provide: OWL_MOMENT_DATE_TIME_ADAPTER_OPTIONS,\n      useFactory: () => inject(ARLAS_OWL_MOMENT_ADAPTER_OPTIONS)\n    },\n    {\n      provide: DateTimeAdapter,\n      useClass: MomentDateTimeAdapter,\n      deps: [OWL_DATE_TIME_LOCALE, OWL_MOMENT_DATE_TIME_ADAPTER_OPTIONS] },\n    {\n      provide: OWL_DATE_TIME_FORMATS,\n      useFactory: () => inject(ARLAS_DATE_TIME_FORMATS)\n    }\n  ],\n  imports: [\n    TranslatePipe,\n    OwlNativeDateTimeModule,\n    OwlMomentDateTimeModule,\n    OwlDateTimeModule,\n    FormsModule\n  ]\n})\nexport class DatePickerComponent implements OnChanges {\n\n  /**\n   * @Input : Angular\n   * @description Start value of the date picker. It must be date or a timestamp.\n   */\n  public startSelectedDate = input.required<Date | number | string | undefined>();\n\n  /**\n   * @Input : Angular\n   * @description End value of the date picker. It must be date or a timestamp.\n   */\n  public endSelectedDate = input.required<Date | number | string | undefined>();\n\n  /**\n   * @Input : Angular\n   * @description In this object, all the necessary inputs of HistogramComponent (ARLAS-web-components)\n   * must be set as well as the identifier of the contributor that fetches timeline data. The `HistogramContributor`\n   * should be declared before in the `contributorRegistry` of `ArlasStartupService`.\n   */\n  public timelineComponent = input.required<TimelineConfiguration>();\n\n  public timelineContributor = computed(() => {\n    const contributor = this.arlasStartupService.contributorRegistry.get(this.timelineComponent().contributorId) as HistogramContributor;\n    contributor.updateData = true;\n    return contributor;\n  });\n\n  public startSelectedMoment = signal<moment.Moment>(moment(0));\n  public endSelectedMoment = signal<moment.Moment>(moment(0));\n\n  public constructor(\n    private readonly arlasStartupService: ArlasStartupService) {\n  }\n\n  public ngOnChanges(changes: SimpleChanges) {\n    if (changes.startSelectedDate) {\n      this.startSelectedMoment.set(this.convertDateToMoment(this.startSelectedDate()));\n    }\n    if (changes.endSelectedDate) {\n      this.endSelectedMoment.set(this.convertDateToMoment(this.endSelectedDate()));\n    }\n  }\n\n  /**\n   * Applies a temporal filter on the timeline when a date is selected on the date picker\n   */\n  public setDate(): void {\n    const selectedIntervalsList = new Array();\n    this.timelineContributor().intervalListSelection\n      .forEach(intervalSelection => {\n        selectedIntervalsList.push(intervalSelection);\n      });\n    selectedIntervalsList\n      .push({\n        startvalue: this.fixUtc(this.startSelectedMoment()).valueOf(),\n        endvalue: this.fixUtc(this.endSelectedMoment()).valueOf()\n      });\n    this.timelineContributor().valueChanged(selectedIntervalsList, this.timelineContributor().getAllCollections());\n  }\n\n  public convertDateToMoment(date: Date | number | string | undefined) {\n    if (this.timelineContributor().useUtc) {\n      return moment.utc(date);\n    } else {\n      return moment(date);\n    }\n  }\n\n  /** Owl-datetime-picker produces a moment that is based on the local.\n   * Offsets the time by the UTC offset to receive a correct UTC time when updating the contributor. */\n  public fixUtc(date: moment.Moment) {\n    if (this.timelineContributor().useUtc) {\n      const localUTCSOffset = date.utcOffset();\n      return date.add(localUTCSOffset, 'minutes');\n    }\n    return date;\n  }\n\n  /**\n   * Adds mat button class to define the material theme variables to uniformize the format of the buttons\n   */\n  public addButtonClass() {\n    const buttons = document.getElementsByClassName('owl-dt-container-control-button');\n\n    if (buttons.length !== 2) {\n      console.warn('Could not find the date picker buttons.');\n      return;\n    }\n\n    buttons.item(0)?.classList.add('mat-mdc-outlined-button');\n    buttons.item(1)?.classList.add('mat-mdc-unelevated-button', 'mat-primary');\n  }\n}\n","<label class=\"arlas-date-picker-label-from\">\n  {{'Datepicker.rangeFromLabel' | translate}}\n  <input class=\"arlas-date-picker-input-from\" [(ngModel)]=\"startSelectedMoment\" [owlDateTimeTrigger]=\"startDt\" [owlDateTime]=\"startDt\"\n    (dateTimeChange)=\"setDate()\" [max]=\"endSelectedMoment\">\n  <owl-date-time #startDt [showSecondsTimer]=\"true\" (beforePickerOpen)=\"addButtonClass()\"></owl-date-time>\n</label>\n<label class=\"arlas-date-picker-label-to\">\n  {{'Datepicker.rangeToLabel' | translate}}\n  <input class=\"arlas-date-picker-input-to\" [(ngModel)]=\"endSelectedMoment\" [owlDateTimeTrigger]=\"endDt\" [owlDateTime]=\"endDt\"\n    (dateTimeChange)=\"setDate()\" [min]=\"startSelectedMoment\">\n  <owl-date-time #endDt [showSecondsTimer]=\"true\" (beforePickerOpen)=\"addButtonClass()\"></owl-date-time>\n</label>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { inject, Pipe, PipeTransform } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { timeFormat, utcFormat } from 'd3-time-format';\n\n@Pipe({\n  name: 'getTimeLabel'\n})\nexport class GetTimeLabelPipe implements PipeTransform {\n  private readonly translate = inject(TranslateService);\n\n  public transform(label: string | undefined, format: string | undefined, useUtc: boolean): string | undefined {\n    if (label) {\n      const startEndValues = label.split('to');\n      if (startEndValues.length > 1) {\n        const start = new Date(+startEndValues[0]);\n        const end = new Date(+startEndValues[1]);\n        if (!format) {\n          format = '%d/%m/%Y %H:%M';\n        }\n        if (useUtc) {\n          return this.translate.instant('From') + ' ' + (utcFormat(format)(start) + ' '\n            + this.translate.instant('to') + ' ' + utcFormat(format)(end));\n        } else {\n          return this.translate.instant('From') + ' ' + (timeFormat(format)(start) + ' '\n            + this.translate.instant('to') + ' ' + timeFormat(format)(end));\n        }\n      } else {\n        return this.translate.instant(label);\n      }\n    } else {\n      return label;\n    }\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { KeyValuePipe } from '@angular/common';\nimport { Component, computed, EventEmitter, input, Input, OnInit, Output } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { HistogramContributor, SelectedOutputValues, StringifiedTimeShortcut } from 'arlas-web-contributors';\nimport { OperationEnum } from 'arlas-web-core';\nimport { filter } from 'rxjs/operators';\nimport { GetTimeLabelPipe } from '../../../pipes/get-time-label.pipe';\nimport { ArlasCollaborativesearchService } from '../../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasStartupService } from '../../../services/startup/startup.service';\nimport { DatePickerComponent } from '../date-picker/date-picker.component';\nimport { TimelineConfiguration } from '../timeline/timeline.utils';\n\n/**\n * This component contains shortcut labels that allow to apply predefined temporal filters on a timeline\n * (Last year, Last month, Today, etc ...).\n * It also displays the start and end values of the current selection on the timeline. And if enabled, a datepicker is allowed on those\n * start and end values.\n * This component is used internally in `TimelineComponent`\n */\n@Component({\n  selector: 'arlas-timeline-shortcut',\n  templateUrl: './timeline-shortcut.component.html',\n  styleUrls: ['./timeline-shortcut.component.scss'],\n  imports: [\n    MatChipsModule,\n    MatIconModule,\n    MatTooltipModule,\n    TranslatePipe,\n    GetTimeLabelPipe,\n    DatePickerComponent,\n    KeyValuePipe,\n    MatButtonModule\n  ]\n})\nexport class TimelineShortcutComponent implements OnInit {\n  /**\n  * @Input : Angular\n  * @description In this object, all the necessary inputs of HistogramComponent (ARLAS-web-components)\n  * must be set as well as the identifier of the contributor that fetches timeline data. The `HistogramContributor`\n  * should be declared before in the `contributorRegistry` of `ArlasStartupService`\n  */\n  public timelineComponent = input.required<TimelineConfiguration>();\n  /**\n   * @Input : Angular\n   * @description Optional input. Sets the format of start/end date values of the timeline.\n   */\n  @Input() public dateFormat?: string;\n  /**\n   * @Input : Angular\n   * @description Whether the date picker is enabled\n   */\n  @Input() public activeDatePicker = false;\n\n  /**\n   * @Input : Angular\n   * @description Whether to display the timelines' histogram\n   */\n  @Input() public isDisplayHistogram = true;\n\n  /**\n   * @Output : Angular\n   * @description Emits when the value of isDisplayHistogram changes\n   */\n  @Output() public isDisplayHistogramChange = new EventEmitter();\n\n  /**\n   * @Output : Angular\n   * @description Emits when the timeline collaboration is removed\n   */\n  @Output() public removeCollaboration = new EventEmitter<void>();\n\n  public timelineContributor = computed(() => {\n    const contributor = this.arlasStartupService.contributorRegistry.get(this.timelineComponent().contributorId) as HistogramContributor;\n    contributor.updateData = true;\n    return contributor;\n  });\n\n  public timeShortcuts = computed(() => this.timelineContributor().timeShortcuts);\n  public timeShortcutsMap = computed(() => this.groupBy(this.timeShortcuts(), shortcut => shortcut.type));\n  public showRemoveIcon = false;\n  public showShortcuts = false;\n  public HIDE_SHOW: string = marker('Show time shortcuts');\n  public isShortcutSelected = false;\n  public timeZone = 'UTC';\n\n  public constructor(\n    private readonly arlasCollaborativesearchService: ArlasCollaborativesearchService,\n    private readonly arlasStartupService: ArlasStartupService\n  ) {\n    this.arlasCollaborativesearchService.collaborationBus.pipe(filter(c => ((c.id === this.timelineComponent().contributorId) || c.all)))\n      .subscribe(data => {\n        if (this.timelineContributor().timeLabel?.indexOf('to') === -1) {\n          this.isShortcutSelected = true;\n        } else {\n          this.isShortcutSelected = false;\n        }\n      });\n  }\n  public ngOnInit() {\n    this.setRemoveIconVisibility();\n    if (!this.timelineContributor().useUtc) {\n      this.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n    }\n  }\n\n  /**\n   * Applies a temporal filter on timeline according to the chosen shortcut.\n   * @param shortCut\n   */\n  public setShortcut(shortCut: StringifiedTimeShortcut): void {\n    const selectedIntervalsList = new Array<SelectedOutputValues>();\n    this.timelineContributor().intervalListSelection.forEach(intervalSelection => {\n      selectedIntervalsList.push(intervalSelection);\n    });\n    selectedIntervalsList.push({ startvalue: shortCut.from, endvalue: shortCut.to });\n    this.timelineContributor().valueChanged(selectedIntervalsList, this.timelineContributor().getAllCollections());\n  }\n\n  /**\n   * Shows/hides the `div` containing the shortcuts list\n   */\n  public showSortcuts(): void {\n    if (this.timeShortcuts() && this.timeShortcuts().length > 0) {\n      this.showShortcuts = !this.showShortcuts;\n      if (this.showShortcuts) {\n        this.HIDE_SHOW = marker('Hide time shortcuts');\n      } else {\n        this.HIDE_SHOW = marker('Show time shortcuts');\n      }\n    }\n  }\n\n  /**\n   * Removes all temporal filters of the timeline\n   */\n  public removeTimelineCollaboration(): void {\n    this.showRemoveIcon = false;\n    this.isShortcutSelected = false;\n    this.removeCollaboration.next();\n  }\n\n  public toggleTimeline() {\n    this.isDisplayHistogram = !this.isDisplayHistogram;\n    this.isDisplayHistogramChange.next(this.isDisplayHistogram);\n  }\n\n  /**\n   * Shows or hides the icon that allows to clear all temporal filter. This icon is displayed when there filters on the timeline.\n   */\n  private setRemoveIconVisibility(): void {\n    this.arlasCollaborativesearchService.collaborationBus.pipe(filter(c => (c.id === this.timelineComponent().contributorId || c.all)))\n      .subscribe(c => {\n        if (c.operation === OperationEnum.remove) {\n          this.showRemoveIcon = false;\n        } else if (c.operation === OperationEnum.add &&\n          this.arlasCollaborativesearchService.collaborations.has(this.timelineComponent().contributorId)) {\n          this.showRemoveIcon = true;\n        }\n      });\n  }\n\n  private groupBy(list: StringifiedTimeShortcut[], keyGetter: (short: StringifiedTimeShortcut) => string) {\n    const map = new Map();\n    list.forEach((item) => {\n      const key = keyGetter(item);\n      const collection = map.get(key);\n      if (!collection) {\n        map.set(key, [item]);\n      } else {\n        collection.push(item);\n      }\n    });\n    return map;\n  }\n}\n","<div class=\"arlas-time-shortcuts--container\">\n  @if (showShortcuts) {\n    <div class=\"arlas-time-shortcuts__list--container\">\n      @for (shortcutType of timeShortcutsMap() | keyvalue; track shortcutType) {\n        <ul class=\"arlas-time-shortcuts__list\">\n          @for (shortCut of shortcutType.value; track shortCut) {\n            <li class=\"arlas-time-shortcut\" (click)=\"setShortcut(shortCut)\" (keydown)=\"setShortcut(shortCut)\">\n              {{shortCut.label | translate}}</li>\n          }\n        </ul>\n      }\n    </div>\n  }\n  <div class=\"arlas-time--tools\">\n    <mat-basic-chip class=\"shortcut-button\">\n      <button mat-icon-button id=\"shortcut-btn\" class=\"shortcut-button__icon\" (click)=\"showSortcuts()\"\n          [matTooltip]=\"HIDE_SHOW | translate\" matTooltipPosition=\"above\">\n        <mat-icon>access_time</mat-icon>\n      </button>\n\n      <div class=\"arlas-datepicker-container\">\n        @if (activeDatePicker) {\n          <arlas-tool-date-picker class=\"shortcut-button__label\"\n            [startSelectedDate]=\"timelineContributor().intervalSelection?.startvalue\"\n            [endSelectedDate]=\"timelineContributor().intervalSelection?.endvalue\"\n            [timelineComponent]=\"timelineComponent()\">\n          </arlas-tool-date-picker>\n        } @else {\n          <div class=\"shortcut-button__label\">\n            {{timelineContributor().timeLabel | getTimeLabel:dateFormat:timelineContributor().useUtc}}\n          </div>\n        }\n        <div class=\"time-zone\" matTooltip=\"{{'Time zone' | translate}} {{timeZone}}\" matTooltipPosition=\"above\">\n          <mat-icon class=\"time-zone-icon\">language</mat-icon>\n        </div>\n      </div>\n      @if (showRemoveIcon) {\n        <button mat-icon-button class=\"shortcut-remove-filter\" (click)=\"removeTimelineCollaboration()\"\n            [matTooltip]=\"'Remove time filter' | translate\" matTooltipPosition=\"above\">\n          <mat-icon class=\"shortcut-remove-filter-icon\" >clear</mat-icon>\n        </button>\n      }\n    </mat-basic-chip>\n    <button mat-icon-button class=\"arlas-timeline-toggle\" [class.arlas-timeline-toggle--open]=\"!isDisplayHistogram\" (click)=\"toggleTimeline()\">\n      @if (isDisplayHistogram) {\n        <mat-icon [matTooltip]=\"'Hide timeline' | translate\" matTooltipPosition=\"above\">keyboard_arrow_down</mat-icon>\n      } @else {\n        <mat-icon [matTooltip]=\"'Show timeline' | translate\" matTooltipPosition=\"above\">keyboard_arrow_up</mat-icon>\n      }\n    </button>\n  </div>\n</div>","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { CollectionLegend } from './timeline/timeline.utils';\n\n/**\n * Based on whether a collection is active, as well as the light or dark mode,\n * compute the text and chip color of the collection\n */\n@Pipe({\n  name: 'collectionChipColor',\n})\nexport class CollectionChipColorPipe implements PipeTransform {\n  public transform(legend: CollectionLegend, mode: 'text' | 'chip', isDarkMode: boolean): string {\n    if (mode === 'chip') {\n      if (legend.active) {\n        return legend.color;\n      }\n      return isDarkMode ? '#565656' : '#dadada';\n    }\n\n    if (isDarkMode) {\n      return legend.active ? '#ffffff' : '#797979 ';\n    }\n    return legend.active ? '#000000' : '#bbb';\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, computed, DestroyRef, EventEmitter, inject, input, Input, OnInit, Output, ViewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ChartType, DataType, HistogramTooltip, Position } from 'arlas-d3';\nimport { ArlasColorService, HistogramComponent } from 'arlas-web-components';\nimport { ChartData, DetailedHistogramContributor, HistogramContributor, SelectedOutputValues } from 'arlas-web-contributors';\nimport { OperationEnum } from 'arlas-web-core';\nimport { GetContributorPipe } from '../../../pipes/get-contributor.pipe';\nimport { ArlasCollaborativesearchService } from '../../../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasCollectionService } from '../../../services/collection/arlas-collection.service';\nimport { ArlasOverlayService } from '../../../services/overlays/overlay.service';\nimport { ArlasStartupService } from '../../../services/startup/startup.service';\nimport { ThemeService } from '../../../services/theme.service';\nimport { WidgetNotifierService } from '../../../services/widget/widget.notifier.service';\nimport { ArlasOverlayRef } from '../../../tools/utils';\nimport { ProgressSpinnerComponent } from '../../progress-spinner/progress-spinner.component';\nimport { CollectionChipColorPipe } from '../collection-chip-color-pipe';\nimport { TimelineShortcutComponent } from '../timeline-shortcut/timeline-shortcut.component';\nimport { CollectionLegend, TimelineConfiguration } from './timeline.utils';\n\n\n/**\n * This component contains\n * - A main timeline histogram that plots the count (or other metric) of data over time\n * - A detailed timeline histogram that plots the current selection on the main timeline (optional)\n * - A datepicker (optional)\n * - Shortcut labels that allow to apply predefined temporal filters (Last year, Last month, Today, etc ...)\n */\n@Component({\n  selector: 'arlas-timeline',\n  templateUrl: './timeline.component.html',\n  styleUrls: ['./timeline.component.scss'],\n  imports: [\n    TimelineShortcutComponent,\n    TranslatePipe,\n    ProgressSpinnerComponent,\n    HistogramComponent,\n    GetContributorPipe,\n    MatIconModule,\n    MatButtonModule,\n    CollectionChipColorPipe\n  ]\n})\nexport class TimelineComponent implements OnInit {\n\n  /**\n   * @Input : Angular\n   * @description In this object, all the necessary inputs of HistogramComponent (ARLAS-web-components)\n   * must be set as well as the identifier of the contributor that fetches timeline data. The `HistogramContributor`\n   * should be declared before in the `contributorRegistry` of `ArlasStartupService`\n   */\n  public timelineComponent = input.required<TimelineConfiguration>();\n  /**\n   * @Input : Angular\n   * @description Optional input. If not set, the detailed timeline is deactivated.\n   * Same as the precedent input, In this object, all the necessary inputs of HistogramComponent (ARLAS-web-components)\n   * must be set as well as the identifier of the detailed contributor that fetches data within the current selection.\n   * The `DetailedHistogramContributor` should be declared before in the `contributorRegistry` of `ArlasStartupService`\n   */\n  @Input() public detailedTimelineComponent?: TimelineConfiguration;\n  /**\n   * @Input : Angular\n   * @description Whether the date picker is enabled\n   */\n  @Input() public activeDatePicker = false;\n\n  /**\n   * @Input : Angular\n   * @description Whether to display the timelines' histogram\n   */\n  @Input() public isDisplayHistogram = true;\n\n  /**\n   * @Input : Angular\n   * @description Whether or not the spinner is displayed when loading data\n   */\n  @Input() public showSpinner = false;\n\n  /**\n   * @Input : Angular\n   * @description Color palette of the spinner when loading data\n   */\n  @Input() public colorSpinner = 'primary';\n\n  /**\n   * @Input : Angular\n   * @description Diameter of the spinner when loading data\n   */\n  @Input() public diameterSpinner = 100;\n\n  /**\n   * @Input : Angular\n   * @description Stroke of the spinner when loading data\n   */\n  @Input() public strokeWidthSpinner = 5;\n\n  /**\n   * @Output : Angular\n   * @description Emits when the value of isDisplayHistogram changes\n   */\n  @Output() public isDisplayHistogramChange: EventEmitter<boolean> = new EventEmitter();\n\n  @ViewChild('timeline', { static: false }) public timelineHistogramComponent?: HistogramComponent;\n  @ViewChild('detailedtimeline', { static: false }) public detailedTimelineHistogramComponent?: HistogramComponent;\n\n  public showDetailedTimeline = false;\n  public detailedTimelineContributor?: DetailedHistogramContributor;\n  public detailedTimelineIntervalSelection?: SelectedOutputValues;\n\n  public timelineContributor = computed(() => {\n    const contributor = this.arlasStartupService.contributorRegistry.get(this.timelineComponent().contributorId) as HistogramContributor;\n    contributor.updateData = true;\n    return contributor;\n  });\n\n  public mainCollection = computed(() => this.timelineContributor().collection);\n\n  public timelineData = new Array<ChartData>();\n  public detailedTimelineData = new Array<ChartData>();\n  private isDetailedIntervalBrushed = false;\n  private applicationFirstLoad = false;\n  private timelineIsFiltered = false;\n  public timelineOverlayRef?: ArlasOverlayRef;\n  public timelineLegend: CollectionLegend[] = [];\n\n  private readonly destroyRef = inject(DestroyRef);\n  protected readonly themeService = inject(ThemeService);\n\n  public constructor(\n    protected readonly arlasCollaborativesearchService: ArlasCollaborativesearchService,\n    private readonly arlasStartupService: ArlasStartupService,\n    private readonly arlasOverlayService: ArlasOverlayService,\n    private readonly arlasColorService: ArlasColorService,\n    protected readonly widgetNotifier: WidgetNotifierService,\n    private readonly collectionService: ArlasCollectionService) {\n  }\n\n  public ngOnInit() {\n    this.resetHistogramsInputs(this.timelineComponent().input);\n    const displayName = this.collectionService.getDisplayName(this.mainCollection()) !== this.mainCollection() ?\n      this.collectionService.getDisplayName(this.mainCollection()) : this.collectionService.getUnit(this.mainCollection());\n    this.timelineLegend.push({\n      collection: this.mainCollection(),\n      display_name: displayName,\n      color: this.arlasColorService.getColor(this.mainCollection()),\n      active: true,\n      main: true\n    });\n\n    this.timelineContributor().additionalCollections?.forEach(ac => {\n      const displayName = this.collectionService.getDisplayName(ac.collectionName) !== ac.collectionName ?\n        this.collectionService.getDisplayName(ac.collectionName) : this.collectionService.getUnit(ac.collectionName);\n      this.timelineLegend.push({\n        collection: ac.collectionName,\n        display_name: displayName,\n        color: this.arlasColorService.getColor(ac.collectionName),\n        active: true,\n        main: ac.collectionName === this.mainCollection()\n      });\n    });\n\n    this.timelineContributor().chartDataEvent\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe(chartData => {\n        this.timelineData = chartData.filter(cd => {\n          const collectionLegend = this.timelineLegend.find(t => t.collection === cd.chartId);\n          return !!collectionLegend && collectionLegend.active;\n        });\n\n        // Set timeline contributor's data to reflect selection of legend\n        this.timelineContributor().setSelection(this.timelineData,\n          this.arlasCollaborativesearchService.collaborations.get(this.timelineContributor().identifier));\n      });\n\n    if (this.detailedTimelineComponent) {\n      this.detailedTimelineComponent.input.chartHeight = 76;\n      this.resetHistogramsInputs(this.detailedTimelineComponent.input);\n      this.detailedTimelineContributor = <DetailedHistogramContributor>this.arlasStartupService.contributorRegistry\n        .get(this.detailedTimelineComponent.contributorId);\n      this.detailedTimelineContributor.updateData = false;\n\n      this.showDetailedTimelineOnCollaborationEnd();\n    }\n  }\n\n  /**\n   * Recalculates the new data of detailed timeline and resets its own current selection.\n   * @param selections List containing only the current selection of detailed timeline\n   */\n  public onDetailedIntervalBrushed(selections: SelectedOutputValues[]): void {\n    this.isDetailedIntervalBrushed = true;\n    this.detailedTimelineIntervalSelection = { startvalue: selections[0].startvalue, endvalue: selections[0].endvalue };\n    this.timelineContributor().valueChanged(this.timelineContributor().intervalListSelection.concat(selections),\n      this.timelineContributor().getAllCollections());\n  }\n\n  /**\n   * Runs when the selection is brushed on main timeline.\n   * @param selections List containing only the current selection of detailed timeline\n   */\n  public onTimelineIntervalBrushed(selections: SelectedOutputValues[]): void {\n    // Once we bruch the main timeline, we want the detailed one to be able to pick up collaborations again\n    if (this.detailedTimelineContributor) {\n      this.detailedTimelineContributor.updateData = true;\n    }\n    this.timelineContributor().valueChanged(selections, this.timelineContributor().getAllCollections());\n  }\n\n  /**\n   * Runs when the detailed timeline is plotted.\n   * Sets current selection of detailed timeline after it is plotted\n   * Applies the current selection of detailed timeline on the main timeline\n   */\n  public afterDetailedDataPlotted() {\n    // If detailed timeline is replotted after moving its own brush.\n    if (this.isDetailedIntervalBrushed && this.detailedTimelineContributor?.currentSelectedInterval) {\n      // Reset current selection of detailed timeline after it is plotted\n      this.detailedTimelineIntervalSelection = {\n        startvalue: this.detailedTimelineContributor.currentSelectedInterval.startvalue,\n        endvalue: this.detailedTimelineContributor.currentSelectedInterval.endvalue\n      };\n      // Apply the current selection of detailed timeline on the main timeline\n      this.timelineContributor().intervalSelection = {\n        startvalue: this.detailedTimelineContributor.currentSelectedInterval.startvalue,\n        endvalue: this.detailedTimelineContributor.currentSelectedInterval.endvalue\n      };\n    } else { // If detailed timeline is replotted after moving the brush of the main timeline or when the app is loaded.\n      const selection = this.detailedTimelineContributor?.currentSelectedInterval;\n      if (selection) {\n        this.detailedTimelineIntervalSelection = { startvalue: selection.startvalue, endvalue: selection.endvalue };\n      } else {\n        this.applicationFirstLoad = true;\n      }\n    }\n    this.isDetailedIntervalBrushed = false;\n  }\n\n  public showHistogramTooltip(tooltip: HistogramTooltip, e: HTMLDivElement, xOffset: number, yOffset: number, right: boolean) {\n    if (this.timelineOverlayRef) {\n      this.timelineOverlayRef.close();\n    }\n    if (!!tooltip && tooltip.shown) {\n      this.timelineOverlayRef = this.arlasOverlayService.openHistogramTooltip({ data: tooltip }, e, xOffset, yOffset, right);\n    }\n  }\n\n  public hideHistogramTooltip() {\n    if (this.timelineOverlayRef) {\n      this.timelineOverlayRef.close();\n    }\n  }\n\n  public emitTooltip(tooltip: HistogramTooltip, e: HTMLDivElement) {\n    const yOffset = this.timelineLegend && this.timelineLegend.length > 1 ? -140 : -110;\n    let xOffset = tooltip.xPosition ?? 0;\n    let right = false;\n    if (!!tooltip && tooltip.shown && tooltip.xPosition && tooltip.chartWidth && tooltip.xPosition > tooltip.chartWidth / 2) {\n      xOffset = -tooltip.chartWidth + tooltip.xPosition;\n      right = true;\n    }\n    this.showHistogramTooltip(tooltip, e, xOffset, yOffset, right);\n  }\n\n  public hideShowCollection(collectionIdx: number): void {\n    // Trigger change detection for pipes\n    this.timelineLegend[collectionIdx] = { ...this.timelineLegend[collectionIdx], active: !this.timelineLegend[collectionIdx].active };\n    const activeCollections = new Set(this.timelineLegend.filter(tl => tl.active).map(tl => tl.collection));\n    this.timelineContributor().collections = this.timelineContributor().getAllCollections()\n      .filter(c => activeCollections.has(c.collectionName));\n    if (this.timelineContributor().collections.length === 0) {\n      this.timelineData = this.timelineContributor().chartData = [];\n      this.detailedTimelineData  = [];\n      if (this.detailedTimelineContributor) {\n        this.detailedTimelineContributor.chartData = [];\n      }\n      this.hideDetailedTimeline();\n    } else {\n      this.timelineContributor().updateFromCollaboration({\n        id: '',\n        all: false,\n        operation: OperationEnum.add\n      });\n      if (this.detailedTimelineContributor) {\n        this.detailedTimelineContributor.collections = this.timelineContributor().collections;\n        this.detailedTimelineContributor.updateFromCollaboration({\n          id: '',\n          all: false,\n          operation: OperationEnum.add\n        });\n      }\n    }\n  }\n\n  /**\n   * At the end of the collaboration of the Timeline Contributor, hides the timeline if the collaboration removed the filter.\n   * If it added one, then asks the Detailed Timeline Contributor to update its data, to then check if the detailed timeline should display.\n   */\n  private showDetailedTimelineOnCollaborationEnd(): void {\n    this.detailedTimelineContributor?.chartDataEvent\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe(chartData => {\n        this.detailedTimelineData = chartData.filter(cd => {\n          const collectionLegend = this.timelineLegend.find(t => t.collection === cd.chartId);\n          return !!collectionLegend && collectionLegend.active;\n        });\n        this.hideShowDetailedTimeline();\n      });\n\n    this.timelineContributor().endCollaborationEvent\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe(c => {\n        if (c.operation === OperationEnum.remove) {\n          this.timelineIsFiltered = false;\n          this.hideDetailedTimeline();\n        } else if (c.operation === OperationEnum.add) {\n          this.timelineIsFiltered = this.arlasCollaborativesearchService.\n            collaborations.has(this.timelineComponent().contributorId);\n          if (this.timelineIsFiltered && this.detailedTimelineContributor) {\n            this.detailedTimelineContributor.updateData = true;\n            this.detailedTimelineContributor.updateFromCollaboration(c);\n          }\n        }\n      });\n  }\n\n  /**\n   * On the event sent by the timeline-tools, remove the timeline collaboration and hide the detailed timeline\n   */\n  protected onRemoveCollaboration() {\n    this.arlasCollaborativesearchService.removeFilter(this.timelineComponent().contributorId);\n    this.timelineIsFiltered = false;\n    this.hideDetailedTimeline();\n  }\n\n  public toggleTimeline() {\n    this.isDisplayHistogram = !this.isDisplayHistogram;\n    this.isDisplayHistogramChange.next(this.isDisplayHistogram);\n    // Disable the update of both normal and detailed timeline if not open\n    this.timelineContributor().updateData = this.isDisplayHistogram;\n    if (this.detailedTimelineContributor) {\n      this.detailedTimelineContributor.updateData = this.showDetailedTimeline && this.isDisplayHistogram;\n    }\n\n    if (this.isDisplayHistogram) {\n      this.timelineContributor().updateFromCollaboration({\n        id: this.timelineContributor().linkedContributorId,\n        operation: OperationEnum.add,\n        all: false\n      });\n      if (this.showDetailedTimeline && this.detailedTimelineContributor) {\n        this.detailedTimelineContributor.updateFromCollaboration({\n          id: this.detailedTimelineContributor.linkedContributorId,\n          operation: OperationEnum.add,\n          all: false\n        });\n      }\n    }\n  }\n\n  private hideShowDetailedTimeline() {\n    let timelineRange = this.timelineContributor().range;\n    if (this.timelineContributor().chartData.length > 1) {\n      const d = this.timelineContributor().chartData;\n      const l = d.length;\n      timelineRange = (+d[l - 1].key) - (+d[0].key);\n    }\n    let detailedTimelineRange = this.detailedTimelineContributor?.range;\n    if (!!this.detailedTimelineContributor && this.detailedTimelineContributor.chartData?.length > 1) {\n      const d = this.detailedTimelineContributor.chartData;\n      const l = d.length;\n      detailedTimelineRange = (+d[l - 1].key) - (+d[0].key);\n    }\n    // In case if the timeline is hidden\n    if (this.timelineHistogramComponent?.histogram) {\n      if (timelineRange !== undefined && detailedTimelineRange !== undefined) {\n        const timelineSelection = this.timelineContributor().intervalSelection;\n        const intervalSelection = timelineSelection ? (+timelineSelection.endvalue - +timelineSelection.startvalue) : Number.POSITIVE_INFINITY;\n        const intervalSelectionCondition = intervalSelection <= 0.2 * timelineRange;\n        this.showDetailedTimeline = (detailedTimelineRange <= 0.2 * timelineRange) && intervalSelectionCondition;\n\n        this.timelineHistogramComponent.histogram.histogramParams.chartHeight = (this.showDetailedTimeline) ?\n          45 : this.timelineComponent().input.chartHeight;\n        this.timelineHistogramComponent.histogram.histogramParams.yTicks = (this.showDetailedTimeline) ?\n          1 : this.timelineComponent().input.yTicks;\n        this.timelineHistogramComponent.histogram.histogramParams.yLabels = (this.showDetailedTimeline) ?\n          1 : this.timelineComponent().input.yLabels;\n        this.timelineHistogramComponent.histogram.histogramParams.showHorizontalLines = (this.showDetailedTimeline) ?\n          false : this.timelineComponent().input.showHorizontalLines;\n        this.timelineHistogramComponent.resizeHistogram();\n\n        if (this.detailedTimelineContributor) {\n          this.detailedTimelineContributor.updateData = this.showDetailedTimeline;\n\n          if (this.applicationFirstLoad && this.detailedTimelineContributor.currentSelectedInterval) {\n            // Sets current selection of detailed timeline\n            const select = this.detailedTimelineContributor.currentSelectedInterval;\n            this.detailedTimelineIntervalSelection = { startvalue: select.startvalue, endvalue: select.endvalue };\n            this.applicationFirstLoad = false;\n          }\n        }\n\n        if (this.showDetailedTimeline && !!this.detailedTimelineHistogramComponent) {\n          this.detailedTimelineHistogramComponent.resizeHistogram();\n        }\n      } else {\n        this.hideDetailedTimeline();\n      }\n    }\n  }\n\n  private resetHistogramsInputs(inputs: any) {\n    Object.keys(inputs).forEach(key => {\n      if (Number.isNaN(inputs[key])) {\n        if (key === 'chartType') {\n          inputs[key] = ChartType[inputs[key] as keyof typeof ChartType];\n        } else if (key === 'dataType') {\n          inputs[key] = DataType[inputs[key] as keyof typeof DataType];\n        } else if (key === 'xAxisPosition') {\n          inputs[key] = Position[inputs[key] as keyof typeof Position];\n        } else if (key === 'descriptionPosition') {\n          inputs = Position[inputs[key] as keyof typeof Position];\n        }\n      }\n    });\n  }\n\n  private hideDetailedTimeline() {\n    this.showDetailedTimeline = false;\n    if (this.detailedTimelineContributor) {\n      this.detailedTimelineContributor.updateData = false;\n    }\n    if (this.timelineHistogramComponent?.histogram) {\n      this.timelineHistogramComponent.histogram.histogramParams.chartHeight = this.timelineComponent().input.chartHeight;\n      this.timelineHistogramComponent.resizeHistogram();\n    }\n  }\n}\n","<arlas-timeline-shortcut class=\"arlas-timeline--timeshortcuts\" [activeDatePicker]=\"activeDatePicker\"\n  [timelineComponent]=\"timelineComponent()\" [dateFormat]=\"timelineComponent().dateFormat\"\n  [isDisplayHistogram]=\"isDisplayHistogram\" (isDisplayHistogramChange)=\"toggleTimeline()\"\n  (removeCollaboration)=\"onRemoveCollaboration()\"></arlas-timeline-shortcut>\n\n@if (isDisplayHistogram) {\n  <div class=\"arlas-timeline--container\" #arlasTimeline>\n    @if (!!timelineLegend && timelineLegend.length > 1) {\n      <div class=\"arlas-timeline--legend\">\n        @for (collectionLegend of timelineLegend; track collectionLegend.collection) {\n          <button mat-button class=\"arlas-timeline--legend-container\" (click)=\"hideShowCollection($index)\">\n            <div class=\"arlas-timeline--legend-chip\"\n              [style.backgroundColor]=\"collectionLegend | collectionChipColor:'chip':themeService.isDarkMode()\"></div>\n            <div class=\"arlas-timeline--legend-collection\" [style.color]=\"collectionLegend | collectionChipColor:'text':themeService.isDarkMode()\">\n              {{ collectionLegend.display_name | translate }}</div>\n          </button>\n        }\n      </div>\n    }\n    @if (detailedTimelineComponent) {\n      <div class=\"show-detailedtimeline-{{'' + showDetailedTimeline}}\" (mouseleave)=\"hideHistogramTooltip()\">\n        <arlas-histogram #detailedtimeline [data]=\"detailedTimelineData\" [mainChartId]=\"mainCollection()\"\n          [intervalSelection]=\"$any(detailedTimelineIntervalSelection)\" (dataPlottedEvent)=\"afterDetailedDataPlotted()\"\n          (valuesListChangedEvent)=\"onDetailedIntervalBrushed($event)\" [id]=\"detailedTimelineComponent.input.id\"\n          [displayOnlyIntervalsWithData]=true [dataType]=\"detailedTimelineComponent.input.dataType\"\n          [dataUnit]=\"detailedTimelineComponent.input.dataUnit\"\n          [valuesDateFormat]=\"detailedTimelineComponent.input.valuesDateFormat\"\n          [isHistogramSelectable]=\"detailedTimelineComponent.input.isHistogramSelectable === undefined ? true : detailedTimelineComponent.input.isHistogramSelectable \"\n          [multiselectable]=\"detailedTimelineComponent.input.multiselectable\"\n          [topOffsetRemoveInterval]=\"detailedTimelineComponent.input.topOffsetRemoveInterval\"\n          [leftOffsetRemoveInterval]=\"detailedTimelineComponent.input.leftOffsetRemoveInterval\"\n          [brushHandlesHeightWeight]=\"!!detailedTimelineComponent.input.brushHandlesHeightWeight ? detailedTimelineComponent.input.brushHandlesHeightWeight : 0.8 \"\n          [chartType]=\"detailedTimelineComponent.input.chartType\"\n          [chartTitle]=\"detailedTimelineComponent.input.chartTitle\"\n          [chartWidth]=\"!!detailedTimelineComponent.input.chartWidth ? detailedTimelineComponent.input.chartWidth : null \"\n          [chartHeight]=\"!!detailedTimelineComponent.input.chartHeight ? detailedTimelineComponent.input.chartHeight : 128\"\n          [customizedCssClass]=\"detailedTimelineComponent.input.customizedCssClass\"\n          [xAxisPosition]=\"detailedTimelineComponent.input.xAxisPosition\"\n          [descriptionPosition]=\"detailedTimelineComponent.input.descriptionPosition\"\n          [xTicks]=\"detailedTimelineComponent.input.xTicks\" [yTicks]=\"detailedTimelineComponent.input.yTicks\"\n          [xLabels]=\"detailedTimelineComponent.input.xLabels\" [yLabels]=\"detailedTimelineComponent.input.yLabels\"\n          [showXTicks]=\"detailedTimelineComponent.input.showXTicks\"\n          [showYTicks]=\"detailedTimelineComponent.input.showYTicks\"\n          [showXLabels]=\"detailedTimelineComponent.input.showXLabels\"\n          [showYLabels]=\"detailedTimelineComponent.input.showYLabels\"\n          [ticksDateFormat]=\"detailedTimelineComponent.input.ticksDateFormat\"\n          [isSmoothedCurve]=\"detailedTimelineComponent.input.isSmoothedCurve\"\n          [barWeight]=\"detailedTimelineComponent.input.barWeight\"\n          [paletteColors]=\"detailedTimelineComponent.input.paletteColors\"\n          (hoveredBucketEvent)=\"widgetNotifier.notifyBucketHover($event)\"\n          [applyOffsetOnAreaChart]=\"detailedTimelineComponent.input.applyOffsetOnAreaChart\"\n          [displayOnlyIntervalsWithData]=\"detailedTimelineComponent.input.displayOnlyIntervalsWithData\"\n          [yAxisStartsFromZero]=\"detailedTimelineComponent.input.yAxisStartsFromZero\"\n          [showStripes]=\"detailedTimelineComponent.input.showStripes\"\n          [chartXLabel]=\"detailedTimelineComponent.input.chartXLabel\"\n          [shortYLabels]=\"detailedTimelineComponent.input.shortYLabels\" [xUnit]=\"detailedTimelineComponent.input.xUnit\"\n          [yUnit]=\"detailedTimelineComponent.input.yUnit\" [useUtc]=\"detailedTimelineContributor?.useUtc\"\n          (tooltipEvent)=\"emitTooltip($event, arlasTimeline)\"></arlas-histogram>\n      </div>\n    }\n    @if (timelineComponent()) {\n      <div (mouseleave)=\"hideHistogramTooltip()\">\n        <arlas-histogram #timeline [intervalListSelection]=\"$any(timelineContributor().intervalListSelection)\"\n          [intervalSelection]=\"$any(timelineContributor().intervalSelection)\" [data]=\"timelineData\"\n          (valuesListChangedEvent)=\"onTimelineIntervalBrushed($event)\" [mainChartId]=\"mainCollection()\"\n          [id]=\"timelineComponent().input.id\" [dataType]=\"timelineComponent().input.dataType\"\n          [dataUnit]=\"timelineComponent().input.dataUnit\" [valuesDateFormat]=\"timelineComponent().input.valuesDateFormat\"\n          [isHistogramSelectable]=\"timelineComponent().input.isHistogramSelectable === undefined ? true : timelineComponent().input.isHistogramSelectable \"\n          [multiselectable]=\"timelineComponent().input.multiselectable\"\n          [topOffsetRemoveInterval]=\"timelineComponent().input.topOffsetRemoveInterval\"\n          [leftOffsetRemoveInterval]=\"timelineComponent().input.leftOffsetRemoveInterval\"\n          [brushHandlesHeightWeight]=\"!!timelineComponent().input.brushHandlesHeightWeight ? timelineComponent().input.brushHandlesHeightWeight : 0.8 \"\n          [chartType]=\"timelineComponent().input.chartType\" [chartTitle]=\"timelineComponent().input.chartTitle\"\n          [chartWidth]=\"!!timelineComponent().input.chartWidth ? timelineComponent().input.chartWidth : null \"\n          [chartHeight]=\"!!timelineComponent().input.chartHeight ? timelineComponent().input.chartHeight : 128\"\n          [customizedCssClass]=\"timelineComponent().input.customizedCssClass\"\n          [xAxisPosition]=\"timelineComponent().input.xAxisPosition\"\n          [descriptionPosition]=\"timelineComponent().input.descriptionPosition\" [xTicks]=\"timelineComponent().input.xTicks\"\n          [yTicks]=\"timelineComponent().input.yTicks\" [xLabels]=\"timelineComponent().input.xLabels\"\n          [yLabels]=\"timelineComponent().input.yLabels\" [showXTicks]=\"timelineComponent().input.showXTicks\"\n          [showYTicks]=\"timelineComponent().input.showYTicks\" [showXLabels]=\"timelineComponent().input.showXLabels\"\n          [showYLabels]=\"timelineComponent().input.showYLabels\"\n          [ticksDateFormat]=\"timelineComponent().input.ticksDateFormat\"\n          [isSmoothedCurve]=\"timelineComponent().input.isSmoothedCurve\" [barWeight]=\"timelineComponent().input.barWeight\"\n          [paletteColors]=\"timelineComponent().input.paletteColors\"\n          (hoveredBucketEvent)=\"widgetNotifier.notifyBucketHover($event)\"\n          [applyOffsetOnAreaChart]=\"timelineComponent().input.applyOffsetOnAreaChart\"\n          [displayOnlyIntervalsWithData]=\"timelineComponent().input.displayOnlyIntervalsWithData\"\n          [yAxisStartsFromZero]=\"timelineComponent().input.yAxisStartsFromZero\"\n          [showStripes]=\"timelineComponent().input.showStripes\" [chartXLabel]=\"timelineComponent().input.chartXLabel\"\n          [shortYLabels]=\"timelineComponent().input.shortYLabels\" [xUnit]=\"timelineComponent().input.xUnit\"\n          [yUnit]=\"timelineComponent().input.yUnit\" [useUtc]=\"timelineContributor().useUtc\"\n          (tooltipEvent)=\"emitTooltip($event,arlasTimeline)\"></arlas-histogram>\n      </div>\n    }\n    @if (timelineData.length === 0) {\n      <div class=\"timeline-empty\">\n        <mat-icon class=\"icon\">event_busy</mat-icon>\n        {{ 'No data available.' | translate }}\n      </div>\n    }\n    @if (showSpinner) {\n      <arlas-tool-progress-spinner [strokeWidth]=\"strokeWidthSpinner\"\n        [color]=\"colorSpinner\" [diameter]=\"diameterSpinner\"\n        [hidden]=\"!((timelineComponent().contributorId | getContributor)?.isDataUpdating\n          || (showDetailedTimeline && (detailedTimelineComponent?.contributorId | getContributor)?.isDataUpdating))\">\n      </arlas-tool-progress-spinner>\n    }\n  </div>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject, input, Input } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialog } from '@angular/material/dialog';\nimport { MarkdownComponent } from 'ngx-markdown';\n\n@Component({\n  selector: 'arlas-about',\n  template: ''\n})\nexport class AboutComponent {\n\n  /**\n   * @Input : Angular\n   * @description Path to the markdown file containing the information to display\n   */\n  public pathToMd = input.required<string>();\n\n  /**\n   * @Input : Angular\n   * @description Extra text data displayed before the markdown\n   */\n  @Input() public extraTextData?: string;\n\n  public constructor(private readonly dialog: MatDialog) { }\n\n  public openDialog() {\n    this.dialog.open<AboutDialogComponent, AboutDialogData>(AboutDialogComponent, {\n      panelClass: 'arlas-about-dialog',\n      data: {\n        pathToMd: this.pathToMd(),\n        extraTextData: this.extraTextData\n      }\n    });\n  }\n}\n\ninterface AboutDialogData {\n  pathToMd: string;\n  extraTextData?: string;\n}\n\n@Component({\n  selector: 'arlas-about-dialog',\n  templateUrl: './about-dialog.component.html',\n  styleUrls: ['./about-dialog.component.scss'],\n  imports: [\n    MarkdownComponent\n  ]\n})\nexport class AboutDialogComponent {\n  public data = inject<AboutDialogData>(MAT_DIALOG_DATA);\n}\n\n","<markdown [data]=\"data.extraTextData\"></markdown>\n<markdown [src]=\"data.pathToMd\"></markdown>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\nimport { Component, EventEmitter, inject, input, OnInit, Output } from '@angular/core';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatTooltip } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { finalize } from 'rxjs';\nimport { LinkSettings } from '../../../../services/startup/startup.service';\nimport { GET_OPTIONS } from '../../../../tools/utils';\n\n@Component({\n  selector: 'arlas-link',\n  templateUrl: './link.component.html',\n  styleUrls: ['./link.component.scss'],\n  imports: [\n    MatIcon,\n    TranslatePipe,\n    MatTooltip\n  ]\n})\nexport class LinkComponent implements OnInit {\n\n  public link = input.required<LinkSettings>();\n  @Output() public hidden$: EventEmitter<void> = new EventEmitter();\n  @Output() public onCheck$: EventEmitter<void> = new EventEmitter();\n  @Output() public onClick$: EventEmitter<void> = new EventEmitter();\n\n  public show = false;\n  private readonly getOptions = inject(GET_OPTIONS);\n\n  public constructor(\n    private readonly http: HttpClient\n  ) { }\n\n  public ngOnInit(): void {\n    const options = this.getOptions();\n    let responseType = 'text';\n    if (this.link().check_url_response_type === 'json') {\n      responseType = 'json';\n    }\n\n    // Cast as any is needed because typing of GET requires either json or text but not a type that can be either\n    this.http.get(this.link().check_url, { ...options, responseType: responseType as any })\n      .pipe(finalize(() => this.onCheck$.emit()))\n      .subscribe({\n        next: () => {\n          this.show = true;\n        },\n        error: () => {\n          this.show = false;\n          this.hidden$.emit();\n        }\n      });\n  }\n\n  public navigateTo(url: string) {\n    if (url) {\n      window.open(url);\n    }\n    this.onClick$.emit();\n  }\n}\n","@if (show) {\n  <div class=\"wrapper\" (click)=\"navigateTo(link().url)\" (keydown)=\"navigateTo(link().url)\" [matTooltip]=\"link().tooltip | translate\">\n    <div class=\"circle\">\n      <mat-icon>{{link().icon}}</mat-icon>\n    </div>\n    <div class=\"name\">{{link().name | translate}}</div>\n  </div>\n}","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, EventEmitter, HostListener, OnInit, Output } from '@angular/core';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasSettingsService } from '../../../services/settings/arlas.settings.service';\nimport { LinkSettings } from '../../../services/startup/startup.service';\nimport { LinkComponent } from './link/link.component';\n\n@Component({\n  selector: 'arlas-links',\n  templateUrl: './links.component.html',\n  styleUrls: ['./links.component.scss'],\n  imports: [\n    MatProgressSpinnerModule,\n    TranslatePipe,\n    LinkComponent\n  ]\n})\nexport class LinksComponent implements OnInit {\n\n  @HostListener('click', ['$event'])\n  public clickInside($event: Event) {\n    $event.stopPropagation();\n  }\n\n  @HostListener('document:click')\n  public clickOutside() {\n    this.close$.emit();\n  }\n\n  @Output() public close$: EventEmitter<void> = new EventEmitter();\n\n  public links: LinkSettings[];\n  public nbHidden = 0;\n  private nbChecked = 0;\n  public showSpinner = true;\n\n  public constructor(private readonly settingsService: ArlasSettingsService) {\n    this.links = this.settingsService.getLinksSettings();\n  }\n\n  public ngOnInit(): void {\n    this.showSpinner = true;\n  }\n\n  public onLinkChecked() {\n    this.nbChecked++;\n    this.showSpinner = !this.links || (this.nbChecked !== this.links.length);\n  }\n\n  public onLinkHidden() {\n    this.nbHidden++;\n  }\n\n  public onLinkClicked() {\n    this.close$.emit();\n  }\n}\n","<div class=\"wrapper\" (click)=\"$event.stopPropagation()\">\n  @for (link of links; track link; let count = $count) {\n    <arlas-link [link]=\"link\" (hidden$)=\"onLinkHidden()\" (onCheck$)=\"onLinkChecked()\" (onClick$)=\"onLinkClicked()\"></arlas-link>\n  }\n  @if (nbHidden === links.length) {\n    <div class=\"no-link\">\n      {{'no access to apps' | translate}}\n    </div>\n  }\n  @if (showSpinner) {\n    <div class=\"no-link\">\n      <mat-spinner [diameter]=\"20\"></mat-spinner>\n    </div>\n  }\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../../services/authentification/authentification.service';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\n\n\n@Component({\n  selector: 'arlas-user-infos',\n  templateUrl: './user-infos.component.html',\n  styleUrls: ['./user-infos.component.scss'],\n  imports: [\n    TranslatePipe\n  ]\n})\nexport class UserInfosComponent {\n\n  private isAuthentActivated: boolean;\n  public authentMode;\n\n  public organisations: Array<string> = [];\n  public name?: string;\n  public email?: string;\n  public avatar?: string;\n\n  public constructor(\n    private readonly authentService: AuthentificationService,\n    private readonly arlasIamService: ArlasIamService,\n    private readonly settingsService: ArlasSettingsService\n  ) {\n    const authSettings = this.settingsService.getAuthentSettings();\n    this.authentMode = !!authSettings ? authSettings.auth_mode : undefined;\n    this.isAuthentActivated = !!authSettings && !!authSettings.use_authent;\n    if (this.isAuthentActivated && !this.authentMode) {\n      this.authentMode = 'openid';\n    }\n    if (!!authSettings) {\n      if (authSettings.auth_mode === 'iam') {\n        const userInfos = this.arlasIamService.user;\n        if (userInfos?.firstName && userInfos.lastName) {\n          this.name = userInfos.firstName + ' ' + userInfos.lastName;\n        }\n        this.email = userInfos?.email;\n        this.organisations = userInfos?.organisations?.map(o => o.displayName).filter(o => !!o) as string[] ?? [];\n        this.avatar = '';\n      } else {\n        this.authentService.loadUserInfo().subscribe(user => {\n          const data = user.info;\n          this.name = data['preferred_username'];\n          this.email = data['email'];\n          this.organisations = [];\n          this.avatar = '';\n        });\n      }\n    }\n  }\n\n  public computeName = (n: string) => {\n    if (typeof n !== 'string') {\n      return '';\n    }\n    const list = n.split('/');\n    list.shift();\n    return list.join(' ');\n  };\n}\n","<div class=\"user_info-title\">\n    {{ 'User informations' | translate }}\n    @if (avatar) {\n    <img src=\"{{avatar}}\" class=\"user_info-img\">\n    }\n</div>\n\n<div class=\"user_info-list\">\n    @if (name) {\n    <div class=\"user_info\">\n        <i class=\"info\">{{ 'Name' | translate }}</i>\n        <div>{{ name }}</div>\n    </div>\n    }\n    @if (email) {\n    <div class=\"user_info\">\n        <i class=\"info\">{{ 'Email' | translate }}</i>\n        <div>{{ email }}</div>\n    </div>\n    }\n    @if (authentMode === 'iam') {\n    <div class=\"user_info\">\n        <i class=\"info\">{{ 'Organisations' | translate }}</i>\n        <div class=\"organisations\">\n            @for (o of organisations; track o) {\n            <div> {{organisations.length > 1 ? '-' : ''}} {{ o }}</div>\n            }\n        </div>\n    </div>\n    }\n</div>","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { UpperCasePipe } from '@angular/common';\nimport { Component, computed, inject, Input, ViewChild } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { Router } from '@angular/router';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { finalize } from 'rxjs';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../../services/authentification/authentification.service';\nimport { ErrorService } from '../../services/error/error.service';\nimport { FetchInterceptorService } from '../../services/interceptor/fetch-interceptor.service';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\nimport { ThemeService } from '../../services/theme.service';\nimport { ChangePasswordComponent } from '../change-password/change-password.component';\nimport { UserInfosComponent } from '../user-infos/user-infos.component';\nimport { AboutComponent } from './about/about.component';\nimport { LinksComponent } from './links/links.component';\n\n@Component({\n  selector: 'arlas-top-menu',\n  templateUrl: './top-menu.component.html',\n  styleUrls: ['./top-menu.component.scss'],\n  imports: [\n    MatToolbarModule,\n    MatMenuModule,\n    MatIconModule,\n    TranslatePipe,\n    AboutComponent,\n    MatButtonModule,\n    LinksComponent,\n    MatTooltipModule,\n    UpperCasePipe\n  ]\n})\nexport class TopMenuComponent {\n\n  public connected = false;\n  public isAuthentActivated: boolean;\n  public authentMode: 'openid' | 'iam' | undefined;\n\n  public name?: string;\n  public avatar?: string;\n  public initials?: string;\n  public aboutFile: string;\n  public extraAboutText: string;\n\n  /**\n   * @Input : Angular\n   * @description Version of the WUI to display as info\n   */\n  @Input() public version?: string;\n\n  /**\n   * @Input : Angular\n   * @description Name of the WUI in which the bar is used\n   */\n  @Input() public wuiName?: string;\n\n  /**\n   * @Input : Angular\n   * @description Whether to display the \"About\" button\n   */\n  @Input() public showAboutButton = true;\n\n  public showLinks = false;\n  public linksEnabled = false;\n  protected isDarkThemeEnabled = false;\n  @ViewChild('about', {static: false}) private readonly aboutcomponent?: AboutComponent;\n  private readonly themeService = inject(ThemeService);\n  public isDarkMode = computed(() => this.themeService.isDarkMode());\n\n  public constructor(\n    private readonly authentService: AuthentificationService,\n    private readonly arlasIamService: ArlasIamService,\n    private readonly translate: TranslateService,\n    private readonly router: Router,\n    private readonly dialog: MatDialog,\n    private readonly settingsService: ArlasSettingsService,\n    private readonly fetchInterceptor: FetchInterceptorService,\n    private readonly errorService: ErrorService\n  ) {\n    this.extraAboutText = this.translate.instant('extraAboutText') === 'extraAboutText' ? '' : this.translate.instant('extraAboutText');\n    this.aboutFile = 'assets/about/about_' + this.translate.currentLang + '.md?' + Date.now() + '.md';\n    this.themeService.applyThemePreference();\n    const links = this.settingsService.getLinksSettings();\n    this.linksEnabled = !!links && links.length > 0;\n    const authSettings = this.settingsService.getAuthentSettings();\n    this.authentMode = !!authSettings ? authSettings.auth_mode : undefined;\n    this.isAuthentActivated = !!authSettings && !!authSettings.use_authent;\n    if (this.isAuthentActivated && !this.authentMode) {\n      this.authentMode = 'openid';\n    }\n    if (this.authentMode === 'openid') {\n      const claims = this.authentService.identityClaims as any;\n      this.authentService.canActivateProtectedRoutes.subscribe(isConnected => {\n        this.connected = isConnected;\n        if (isConnected) {\n          this.name = claims.preferred_username;\n          this.avatar = claims.picture;\n          this.initials = this.getInitials(this.name);\n        } else {\n          this.name = '';\n          this.avatar = '';\n        }\n      });\n    } else if (this.authentMode === 'iam') {\n      this.connected = false;\n      this.arlasIamService.tokenRefreshed$.subscribe({\n        next: (data) => {\n          if (!!data) {\n            this.connected = true;\n            this.name = data?.user?.email;\n            this.initials = this.getInitials(this.name);\n          } else {\n            this.connected = false;\n            this.name = '';\n            this.initials = '';\n          }\n        },\n        error: () => {\n          this.connected = false;\n        }\n      });\n    }\n    this.isDarkThemeEnabled = this.settingsService.isDarkThemeEnabled();\n\n    /** This is a method to listen to logging out event from other tabs of the same domain. */\n    window.addEventListener('storage', (event) => {\n      if (event.key === 'arlas-logout-event' && this.connected) {\n        if (this.authentMode === 'openid') {\n          this.authentService.logout();\n        } else if (this.authentMode === 'iam') {\n          this.arlasIamService.logoutWithoutRedirection$().pipe(\n            finalize(() => this.fetchInterceptor.interceptLogout())\n          ).subscribe();\n        }\n      }\n    });\n\n    // Start listening to refresh errors after the initialization of ARLAS to avoid parasite errors\n    this.authentService.refreshErrors$()\n      .subscribe(e => this.errorService.emitSessionExpiredError(401));\n  }\n\n  public connect() {\n    const authSettings = this.settingsService.getAuthentSettings();\n    if (this.authentMode === 'openid') {\n      if (this.connected) {\n        this.authentService.logout();\n      } else {\n        this.authentService.login();\n      }\n    } else if (this.authentMode === 'iam') {\n      if (this.connected) {\n        if (authSettings && authSettings.force_connect) {\n          this.arlasIamService.logout(['/login']);\n        } else {\n          this.arlasIamService.logout(['/']);\n        }\n      } else {\n        this.router.navigate(['login']);\n      }\n    }\n  }\n\n  public changePassword() {\n    this.dialog.open(ChangePasswordComponent, {panelClass: 'change-dialog'});\n  }\n\n  public displayAbout() {\n    this.aboutcomponent?.openDialog();\n  }\n\n  public getUserInfos() {\n    this.dialog.open(UserInfosComponent, {panelClass: 'arlas-user-info-dialog'});\n  }\n\n  public getInitials(name: string | undefined) {\n    if (!!name && name !== '') {\n      return name[0];\n    } else {\n      return '';\n    }\n  }\n\n  protected toggleDarkMode() {\n    this.themeService.toggleThemeMode();\n  }\n}\n","<mat-toolbar class=\"top-menu\">\n  <!-- Insert on the left -->\n  <ng-content select=\"[left-menu]\"></ng-content>\n  <span class=\"spacer\"></span>\n\n  <!-- Insert in the middle -->\n  <ng-content select=\"[middle-menu]\"></ng-content>\n\n  <span class=\"spacer\"></span>\n  <!-- Insert on the right -->\n  <ng-content select=\"[right-menu]\"></ng-content>\n\n  @if (isDarkThemeEnabled) {\n    <button class=\"theme-mode\" mat-icon-button (click)=\"toggleDarkMode()\">\n      <mat-icon>{{isDarkMode() ? 'light_mode' : 'dark_mode' }}</mat-icon>\n    </button>\n  }\n\n  <!-- Information -->\n  @if (showAboutButton) {\n    <button mat-icon-button [matTooltip]=\"'About ##wui##' | translate:{ wui: wuiName, version: version }\"\n      (click)=\"displayAbout()\">\n      <mat-icon class=\"icon\">info_outline</mat-icon>\n    </button>\n  }\n\n  <!-- Page Switcher-->\n  @if (linksEnabled) {\n    <button mat-icon-button matTooltip=\"{{ 'Go to' | translate }}\"\n      (click)=\"showLinks = !showLinks; $event.stopPropagation()\">\n      <mat-icon class=\"icon\">apps</mat-icon>\n    </button>\n  }\n\n  <!-- User info and login -->\n  @if (connected && isAuthentActivated) {\n    <button mat-icon-button matTooltip=\"{{'My account' | translate}}\"\n      [matMenuTriggerFor]=\"actionMenu\" class=\"action-menu-button\">\n      @if (authentMode !== 'iam' && !!avatar) {\n        <img src=\"{{avatar}}\" class=\"user_avatar\">\n      } @else {\n        <div class=\"avatar\">\n          {{initials | uppercase}}\n        </div>\n      }\n    </button>\n  }\n  <mat-menu #actionMenu=\"matMenu\">\n    <button mat-menu-item (click)=\"getUserInfos()\">\n      <mat-icon>person</mat-icon>\n      <span>{{ 'Your profile' | translate }}</span>\n    </button>\n    @if (authentMode === 'iam') {\n      <button mat-menu-item (click)=\"changePassword()\">\n        <mat-icon>password</mat-icon>\n        <span>{{ 'Change my password' | translate }}</span>\n      </button>\n    }\n    <button mat-menu-item (click)=\"connect()\">\n      <mat-icon>logout</mat-icon>\n      <span>{{ 'Logout' | translate }}</span>\n    </button>\n  </mat-menu>\n\n  @if (!connected && isAuthentActivated) {\n    <button mat-icon-button [matTooltip]=\"'Log In' | translate\"\n      (click)=\"connect()\">\n      <mat-icon class=\"icon\">account_circle</mat-icon>\n    </button>\n  }\n\n</mat-toolbar>\n\n<arlas-about #about [pathToMd]=\"aboutFile\" [extraTextData]=\"extraAboutText\"></arlas-about>\n@if (linksEnabled && showLinks) {\n  <arlas-links (close$)=\"showLinks = false\"></arlas-links>\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Component, inject } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormGroupDirective,\n  FormsModule,\n  ReactiveFormsModule,\n  ValidatorFn,\n  Validators\n} from '@angular/forms';\nimport { MatButton } from '@angular/material/button';\nimport { MatError, MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { ActivatedRoute, RouterLink } from '@angular/router';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ArlasIamService } from '../../services/arlas-iam/arlas-iam.service';\nimport { ArlasSettingsService } from '../../services/settings/arlas.settings.service';\nimport { ConfirmedValidator, NOT_CONFIGURED } from '../../tools/utils';\nimport { ThemeService } from '../../services/theme.service';\n\n@Component({\n  selector: 'arlas-verify',\n  templateUrl: './verify.component.html',\n  styleUrls: [\n    './verify.component.scss',\n    '../iam/form-style.scss'\n  ],\n  imports: [FormsModule, ReactiveFormsModule, MatFormField, MatLabel, MatInput, MatError, MatButton, RouterLink, TranslatePipe]\n})\nexport class VerifyComponent {\n  public validateForm = new FormGroup({\n    password: new FormControl('', Validators.required),\n    confirm_password: new FormControl('', Validators.required)\n  }, ConfirmedValidator('password', 'confirm_password') as ValidatorFn);\n  public validated = false;\n  public displayForm = true;\n  public userId: string | null = null;\n  public token: string | null = null;\n  private readonly theme = inject(ThemeService);\n\n  public constructor(\n    private readonly iamService: ArlasIamService,\n    private readonly route: ActivatedRoute,\n    private readonly settingsService: ArlasSettingsService\n  ) {\n    this.route.paramMap.subscribe(params => {\n      this.userId = params.get('id');\n      this.token = params.get('token');\n    });\n    this.theme.applyThemePreference();\n  }\n\n  public onSubmit(formDirective: FormGroupDirective): void {\n    if (!this.userId || !this.token || !this.validateForm.value.password) {\n      return;\n    }\n\n    this.validated = false;\n    this.iamService.verify(this.userId, this.token, this.validateForm.value.password).subscribe({\n      next: (e) => {\n        formDirective.resetForm();\n        this.validateForm.reset();\n        this.validated = true;\n        const authSettings = this.settingsService.getAuthentSettings();\n        this.displayForm = false;\n        if (!!authSettings && authSettings.login_url && authSettings.login_url !== NOT_CONFIGURED) {\n          window.open(authSettings.login_url, '_self');\n        }\n      },\n      error: err => {\n        err.json().then((e: any) => {\n          if (e.message === 'User already verified.') {\n            this.validateForm.setErrors({\n              alreadyVerified: true\n            });\n          } else if (e.message === 'User not found.') {\n            this.validateForm.setErrors({\n              unknownUser: true\n            });\n          } else {\n            this.validateForm.setErrors({\n              serviceError: true\n            });\n          }\n        });\n      }\n    });\n  }\n}\n","<div class=\"container\">\n  <div class=\"validate-form text-center\" style=\"align-items: center;\">\n    <div>\n      <div class=\"title\">\n        <h2>ARLAS - {{'Verify your email' | translate}}</h2>\n      </div>\n      <div>\n\n        <form [formGroup]=\"validateForm\" (ngSubmit)=\"onSubmit(formDirective)\" #formDirective=\"ngForm\">\n          @if (displayForm) {\n            <div class=\"iam__form-content\">\n              <span class=\"form-text-detail\">{{'To validate your email, please set your password:' | translate}}</span>\n              <mat-form-field appearance=\"outline\">\n                <mat-label>{{'Password' | translate}}</mat-label>\n                <input matInput type=\"password\" formControlName=\"password\">\n              </mat-form-field>\n              <mat-form-field appearance=\"outline\">\n                <mat-label>{{'Confirm password' | translate}}</mat-label>\n                <input matInput type=\"password\" formControlName=\"confirm_password\">\n              </mat-form-field>\n              @if (validateForm.controls.confirm_password.touched\n                && validateForm.controls.confirm_password.invalid && validateForm.hasError('confirmedValidator', 'confirm_password')) {\n                <mat-error\n                  class=\"confirm-error\">\n                  {{'Password and Confirm Password must be match' | translate}}\n                </mat-error>\n              }\n            </div>\n          }\n          @if (validated) {\n            <div class=\"validate\">\n              {{'Your account is now active.' | translate}}\n            </div>\n          }\n          @if (validateForm.getError('unknownUser')) {\n            <div class=\"error\">\n              {{ 'Unknown user' | translate}}\n            </div>\n          }\n          @if (validateForm.getError('alreadyVerified')) {\n            <div class=\"error\">\n              {{ 'User already verified' | translate}}\n            </div>\n          }\n          @if (validateForm.getError('serviceError')) {\n            <div class=\"error\">\n              {{ 'An error occured' | translate}}\n            </div>\n          }\n          @if (displayForm) {\n            <div class=\"buttons\">\n              <button type=\"submit\" class=\"validate-button\" [disabled]=\"validateForm.invalid\"\n                matButton=\"filled\" color=\"primary\">{{ 'Validate' | translate}}</button>\n            </div>\n          }\n          <div class=\"account\">\n            {{'Already have an account?' | translate}}\n            <button matButton=\"outlined\" color=\"primary\" type=\"button\" [routerLink]=\"'/login'\">{{ 'Log In' | translate}}</button>\n          </div>\n        </form>\n      </div>\n    </div>\n  </div>\n</div>\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';\nimport { catchError, map, mergeMap, Observable, of } from 'rxjs';\nimport { ArlasIamService } from './arlas-iam.service';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class AuthGuardIamService {\n\n  public constructor(\n    private readonly router: Router,\n    private readonly arlasIamService: ArlasIamService,\n  ) { }\n\n  public canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {\n    if (this.arlasIamService.user) {\n      // If arlasIamService has a user no need to try to refresh\n      // Usefull to not call refresh too many times in app navigation\n      return of(true);\n    } else {\n      return this.arlasIamService.refresh().pipe(map(loginData => {\n        if (loginData.access_token) {\n          this.arlasIamService.setHeadersFromAccesstoken(loginData.access_token);\n          return true;\n        } else {\n          return false;\n        }\n      }),\n      catchError(() => this.arlasIamService.logoutWithoutRedirection$().pipe(mergeMap(() => {\n        this.router.navigate(['/login']);\n        return of(false);\n      }))));\n    }\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { ArlasDataSource } from '../../tools/arlasDataSource';\nimport { BookmarkLocalDatabase } from './bookmarkLocalDatabase';\nimport { BookMark } from './model';\n\n\nexport class BookmarkDataSource extends ArlasDataSource<BookMark> {\n\n  public constructor(public dataBase: BookmarkLocalDatabase) {\n    super(dataBase);\n  }\n\n  public getSortedData(): BookMark[] {\n    const data = this.dataBase.data.slice();\n    // force date asc sort\n    const sortedData = this.sortOnDate(data);\n    return sortedData.slice().filter((item: BookMark) => {\n      if (item.name !== undefined) {\n        const searchStr = (item.name + ' ' + item.collections).toLowerCase();\n        return searchStr.indexOf(this.filter.toLowerCase()) !== -1;\n      }\n    });\n\n  }\n\n  public sortOnDate(data: BookMark[]): BookMark[] {\n    const sortedData = data.sort((a, b) => {\n      let propertyA: number = new Date(0).getTime();\n      let propertyB: number = new Date(0).getTime();\n      [propertyA, propertyB] = [a.date.getTime(), b.date.getTime()];\n      const valueA = isNaN(+propertyA) ? propertyA : +propertyA;\n      const valueB = isNaN(+propertyB) ? propertyB : +propertyB;\n\n      return (valueA < valueB ? -1 : 1) * (-1);\n    });\n    return sortedData;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { CollectionReferenceDescription, Configuration } from 'arlas-api';\nimport { from, Observable } from 'rxjs';\nimport { filter, map } from 'rxjs/operators';\nimport { getFieldProperties } from '../../tools/utils';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigService, ArlasExploreApi } from '../startup/startup.service';\n\n\n@Injectable()\nexport class ArlasConfigurationDescriptor {\n\n  public fetchOptions = {\n    credentials: 'include'\n  };\n\n  public constructor(\n    private collaborativesearchService: ArlasCollaborativesearchService,\n    private configService: ArlasConfigService,\n  ) { }\n\n  /**\n   * @description Returns an Observable that contains the list of all collections\n   * declared in ARLAS-server (that is configurated in env.js ( serverUrl )\n   */\n  public getAllCollections(): Observable<Array<string>> {\n    return <Observable<Array<string>>>from(this.collaborativesearchService.list(false)).pipe(\n      map(\n        (collections: Array<CollectionReferenceDescription>) => collections.map(\n          (collection: CollectionReferenceDescription) => collection.collection_name\n        )\n          .filter(collection => collection !== 'metacollection')\n      )\n    );\n  }\n\n  /**\n   *\n   * @param types\n   * @description Returns an Observable that contains a list of the fields which types are in `types` param.\n   * If no `types` are specified, then all the fields are returned.\n   */\n  public getFields(types?: Array<string>): Observable<Array<{ label: string; type: string; }>> {\n    const configuration: Configuration = new Configuration();\n    const arlasExploreApi: ArlasExploreApi = new ArlasExploreApi(\n      configuration,\n      this.configService.getValue('arlas.server.url'),\n      window.fetch\n    );\n    this.collaborativesearchService.setExploreApi(arlasExploreApi);\n    return this.collaborativesearchService.describe(this.configService.getValue('arlas.server.collection.name')).pipe(\n      filter(description => description.properties !== undefined),\n      map(description => getFieldProperties(description.properties)),\n      map(fields => types ? fields.filter(field => types.find(type => type === field.type) !== undefined)\n        : fields)\n    );\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Expression } from 'arlas-api';\nimport { GeometrySelectModel, GeoQueryOperator, MapSettingsService, OperationSelectModel } from 'arlas-map';\nimport { MapContributor } from 'arlas-web-contributors';\nimport { Contributor } from 'arlas-web-core';\nimport { ArlasStartupService } from '../startup/startup.service';\n\n@Injectable()\nexport class ArlasMapSettings implements MapSettingsService {\n\n  public mapContributors: MapContributor[] = [];\n\n  public constructor(public startUpService: ArlasStartupService) {\n    this.mapContributors = Array.from(this.startUpService.contributorRegistry.values())\n      .filter((c: Contributor) => c instanceof MapContributor)\n      .map(c => c as MapContributor);\n  }\n\n  public getGeoQueries(): Map<string, [GeometrySelectModel[], OperationSelectModel[], string]> {\n    const geoQueriesMap = new Map<string, [GeometrySelectModel[], OperationSelectModel[], string]>();\n    this.mapContributors.forEach(mc => {\n      const collection = this.startUpService.collectionsMap.get(mc.collection);\n      const displayCollectionName = collection?.display_names?.collection ? collection.display_names.collection : mc.collection;\n      geoQueriesMap.set(mc.collection, [this.getFilterGeometries(mc), this.getOperations(mc) , displayCollectionName]);\n    });\n    return geoQueriesMap;\n  }\n\n  private getFilterGeometries(mapContributor: MapContributor): Array<GeometrySelectModel> {\n    const filterGeometries = new Array<GeometrySelectModel>();\n    if (mapContributor) {\n      const geoFields = mapContributor.geoPointFields.concat(mapContributor.geoShapeFields);\n      if (geoFields) {\n        geoFields.forEach(geoField => {\n          filterGeometries.push({\n            path: geoField,\n            selected: geoField === mapContributor.geoQueryField\n          });\n        });\n      }\n    }\n    return filterGeometries;\n  }\n\n  private getOperations(mapContributor: MapContributor): Array<OperationSelectModel> {\n    if (mapContributor) {\n      return [\n        {\n          operation: GeoQueryOperator.WITHIN,\n          selected: Expression.OpEnum.Within === mapContributor.geoQueryOperation\n        },\n        {\n          operation: GeoQueryOperator.NOT_WITHIN,\n          selected: Expression.OpEnum.Notwithin === mapContributor.geoQueryOperation\n        },\n        {\n          operation: GeoQueryOperator.INTERSECTS,\n          selected: Expression.OpEnum.Intersects === mapContributor.geoQueryOperation\n        },\n        {\n          operation: GeoQueryOperator.NOT_INTERSECTS,\n          selected: Expression.OpEnum.Notintersects === mapContributor.geoQueryOperation\n        }\n      ];\n    }\n    return [];\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Injectable } from '@angular/core';\nimport { ComputationRequest, ComputationResponse } from 'arlas-api';\nimport { AbstractArlasMapGL, ArlasLngLatBounds } from 'arlas-map';\nimport { projType } from 'arlas-web-core';\nimport { MapService } from '../../tools/utils';\nimport { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';\n\n/**\n * This service provides map methods on ARLAS data\n */\n@Injectable()\nexport class ArlasMapService implements MapService {\n\n  public constructor(private readonly collaborativeSearchService: ArlasCollaborativesearchService) { }\n\n  /**\n   * @description zooms to the data extent. If 'map' parameter is not defined, then this function uses the 'map' attribute\n   * @param geoPointField geo-point field used to get the bounding box of the data\n   * @param map Map instance\n   * @param paddingPercentage a percentage of the extent's height and width\n   * that is added as a padding to bbox of data (between 0 and 1). It allows to have some context around data\n   */\n  public zoomToData(collection: string, geoPointField: string, map: AbstractArlasMapGL, paddingPercentage?: number) {\n    if (map === null || map === undefined) {\n      throw new Error('[ARLAS][MAP] Impossible to zoomToData, no map was set');\n    }\n\n    const computationRequest: ComputationRequest = {\n      metric: ComputationRequest.MetricEnum.GEOBBOX,\n      field: geoPointField\n    };\n\n    this.collaborativeSearchService.resolveButNotComputation([projType.compute, computationRequest],\n      this.collaborativeSearchService.collaborations, collection)\n      .subscribe((cr: ComputationResponse) => {\n        if (cr?.geometry) {\n          map.fitBounds(map.geometryToBounds(cr.geometry, paddingPercentage) as ArlasLngLatBounds);\n        }\n      });\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\n\nexport abstract class WalkthroughLoader {\n\n  public abstract loader(): Promise<TourDefinition>;\n\n}\n\nexport class BasicWalkthroughLoader extends WalkthroughLoader {\n  public constructor(private readonly http: HttpClient) {\n    super();\n  }\n  public loader() {\n    return this.http\n      .get('/asset/tour/tour_en.json?' + Date.now())\n      .toPromise() as Promise<TourDefinition>;\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n/*\n * Hopscotch is used under Apache License 2.0 : https://github.com/linkedin/hopscotch/blob/master/LICENSE\n */\n\nimport { Injectable } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport hopscotch from 'hopscotch';\nimport { WalkthroughLoader } from './walkthrough.utils';\n\n@Injectable({\n  providedIn: 'root',\n})\nexport class ArlasWalkthroughService {\n\n  public hopscotch: HopscotchStatic;\n  public tourData?: TourDefinition;\n  public isActivable = true;\n\n  public constructor(\n    private readonly walkthrougLoader: WalkthroughLoader,\n    private readonly translateService: TranslateService\n  ) {\n    this.hopscotch = hopscotch;\n  }\n\n  public load(): void {\n    this.walkthrougLoader.loader()\n      .then(response => {\n        this.tourData = response;\n        if (!this.tourData.steps || this.tourData.steps.length <= 0) {\n          this.isActivable = false;\n        } else {\n          if (this.tourData.onStart && typeof this.tourData.onStart === 'string') {\n            this.tourData.onStart = new Function(this.tourData.onStart).bind(this);\n          }\n          if (this.tourData.onEnd && typeof this.tourData.onEnd === 'string') {\n            this.tourData.onEnd = new Function(this.tourData.onEnd).bind(this);\n          }\n          if (this.tourData.onStart && typeof this.tourData.onClose === 'string') {\n            this.tourData.onClose = new Function(this.tourData.onClose).bind(this);\n          }\n          this.tourData.steps.forEach(step => {\n            if (step.onNext && typeof step.onNext === 'string') {\n              step.onNext = new Function(step.onNext).bind(this);\n            }\n            if (step.onPrev && typeof step.onPrev === 'string') {\n              step.onPrev = new Function(step.onPrev).bind(this);\n            }\n            if (step.onShow && typeof step.onShow === 'string') {\n              step.onShow = new Function(step.onShow).bind(this);\n            }\n          });\n          this.tourData.showPrevButton = true;\n          this.tourData.i18n = {\n            nextBtn: this.translateService.instant('tour.nextBtn'),\n            prevBtn: this.translateService.instant('tour.prevBtn'),\n            doneBtn: this.translateService.instant('tour.doneBtn'),\n            skipBtn: this.translateService.instant('tour.skipBtn'),\n            closeTooltip: this.translateService.instant('tour.closeTooltip')\n          };\n          this.startTour();\n        }\n      })\n      .catch(error => {\n        console.error(error);\n        this.isActivable = false;\n      });\n  }\n\n  /**\n   *\n   * @param tour\n   */\n  public setTour(tour: { id: string; steps: any[]; }) {\n    this.tourData = tour;\n  }\n\n  /**\n   * Actually starts the tour.\n   * @param stepNum Optional : specifies what step to start at\n   */\n  public startTour(stepNum?: number) {\n    if (this.tourData && localStorage.getItem(this.tourData.id) !== 'end') {\n      const tourStep = localStorage.getItem(this.tourData.id);\n      if (!tourStep) {\n        this.hopscotch.startTour(this.tourData);\n      } else if (stepNum) {\n        this.hopscotch.startTour(this.tourData, stepNum);\n        localStorage.setItem(this.tourData.id, stepNum.toString());\n      } else {\n        this.hopscotch.startTour(this.tourData, +tourStep);\n      }\n      this.hopscotch.listen('next', () => {\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n        localStorage.setItem(this.tourData!.id, this.hopscotch.getCurrStepNum() + '');\n      });\n      this.hopscotch.listen('end', () => {\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n        localStorage.setItem(this.tourData!.id, 'end');\n        this.hopscotch.removeCallbacks();\n      });\n      this.hopscotch.listen('close', () => {\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n        localStorage.setItem(this.tourData!.id, 'end');\n        this.hopscotch.removeCallbacks();\n      });\n    }\n  }\n\n  /**\n   * Skips to a given step in the tour\n   * @param index\n   */\n  public showStep(index: number) {\n    this.hopscotch.showStep(index);\n  }\n\n  /**\n   * Goes back one step in the tour\n   */\n  public prevStep() {\n    this.hopscotch.prevStep();\n  }\n\n  /**\n   * Goes forward one step in the tour\n   */\n  public nextStep() {\n    this.hopscotch.nextStep();\n  }\n\n  /**\n   * Ends the current tour.\n   * If clearCookie is set to false, the tour state is preserved.\n   * Otherwise, if clearCookie is set to true or is not provided, the tour state is cleared\n   * @param clearCookie\n   */\n  public endTour(clearCookie?: boolean) {\n    this.hopscotch.endTour(!!clearCookie);\n  }\n\n  /**\n   * Sets options for running the tour\n   * @param options : see https://linkedin.github.io/hopscotch/#setting-tour-options\n   */\n  public configure(options: any) {\n    this.hopscotch.configure(options);\n  }\n\n  /**\n   * Returns the currently running tour\n   */\n  public getCurrTour() {\n    return this.hopscotch.getCurrTour();\n  }\n\n  /**\n   * Returns the current zero-based step number\n   */\n  public getCurrStepNum() {\n    return this.hopscotch.getCurrStepNum();\n  }\n\n  /**\n   * Adds a callback for one of the event types.\n   * @param eventName Valid event types are: *start*, *end*, *next*, *prev*, *show*, *close*, *error*\n   * @param callback\n   */\n  public listen(eventName: string, callback: () => void) {\n    this.hopscotch.listen(eventName, callback);\n  }\n\n  /**\n   * Removes a callback for one of the event types\n   */\n  public unlisten(eventName: string, callback: () => void) {\n    hopscotch.unlisten(eventName, callback);\n  }\n\n  /**\n   * Remove all callbacks for hopscotch events\n   */\n  public removeCallbacks() {\n    hopscotch.removeCallbacks();\n  }\n\n  /**\n   * Clear localStorage for the given tour\n   * @param tour\n   */\n  public resetTour() {\n    if (this.tourData) {\n      localStorage.removeItem(this.tourData.id);\n    }\n    // Hopscotch stores the tour step in the session storage\n    this.endTour(true);\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\nimport { ModuleWithProviders, NgModule, Provider } from '@angular/core';\nimport { ArlasWalkthroughService } from './walkthrough.service';\nimport { BasicWalkthroughLoader, WalkthroughLoader } from './walkthrough.utils';\n\nexport interface WalkthroughModuleConfig {\n  loader?: Provider;\n}\n\n@NgModule({})\nexport class ArlasWalkthroughModule {\n\n  /**\n   * Use this method in your root module to provide the ColorGeneratorLoader\n   */\n  public static forRoot(config: WalkthroughModuleConfig = {}): ModuleWithProviders<ArlasWalkthroughModule> {\n    return {\n      ngModule: ArlasWalkthroughModule,\n      providers: [\n        config.loader || { provide: WalkthroughLoader, useClass: BasicWalkthroughLoader, deps: [HttpClient] },\n        ArlasWalkthroughService\n      ]\n    };\n  }\n\n  public static forChild(config: WalkthroughModuleConfig = {}): ModuleWithProviders<ArlasWalkthroughModule> {\n    return {\n      ngModule: ArlasWalkthroughModule,\n      providers: [\n        config.loader || { provide: WalkthroughLoader, useClass: BasicWalkthroughLoader, deps: [HttpClient] },\n        ArlasWalkthroughService\n      ]\n    };\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Aggregation } from 'arlas-api';\nimport { ColorGeneratorLoader } from 'arlas-web-components';\nimport { projType } from 'arlas-web-core';\nimport { Subject } from 'rxjs';\nimport tinycolor from 'tinycolor2';\nimport { ArlasCollaborativesearchService } from '../services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigService } from '../services/startup/startup.service';\n\nconst DEFAULT_COLOR_SATURATION_WEIGHT = 0.5;\n\n/**\n * This service allows to generate a color for a given term.\n * - colors associated to terms in `keysToColors` are considered first\n * - colors associated to terms from aggregations specified in `colorsAggregations` are considered second\n * - if no color is associated to a term, the color is generated with a determinist method.\n * - for generated colors, the saturation scale is tightened to the highest values with `colorsSaturationWeight`\n * If an external `externalKeysToColors` list is given to the service `getColor` method, it is used insted of `keysToColors`\n * If an external `externalColorsSaturationWeight` list is given to the service `getColor` method,\n * it is used insted of `colorsSaturationWeight`\n */\nexport class ArlasColorGeneratorLoader extends ColorGeneratorLoader {\n\n  public keysToColors: Array<[string, string]> = new Array<[string, string]>();\n  public colorsSaturationWeight = DEFAULT_COLOR_SATURATION_WEIGHT;\n  public keysToColorsMap: Map<string, string> = new Map<string, string>();\n  public colorAggregations = new Array<[Aggregation, Aggregation]>();\n\n  private changekeysToColors = new Subject<void>();\n  public changekeysToColors$ = this.changekeysToColors.asObservable();\n\n  public constructor(\n    private configService: ArlasConfigService,\n    private collaborativesearchService: ArlasCollaborativesearchService) {\n    super();\n    const webConfig = this.configService.getValue('arlas.web');\n    if (webConfig && webConfig.colorGenerator) {\n      this.keysToColors = webConfig.colorGenerator.keysToColors;\n      this.keysToColors.forEach(item => {\n        this.keysToColorsMap.set(item[0], item[1]);\n      });\n      this.colorsSaturationWeight = webConfig.colorGenerator.colorsSaturationWeight;\n      this.colorAggregations = webConfig.colorGenerator.colorAggregations;\n    }\n    if (this.colorAggregations) {\n      this.setColorsFromAggregations();\n    }\n    if (this.colorsSaturationWeight === undefined || this.colorsSaturationWeight === null) {\n      this.colorsSaturationWeight = DEFAULT_COLOR_SATURATION_WEIGHT;\n    }\n    this.changekeysToColors.next();\n  }\n\n\n  public getColor(key: string, externalKeysToColors?: Array<[string, string]>, externalColorsSaturationWeight?: number): string {\n    let colorHex: string | null = null;\n    const keysToColors = externalKeysToColors ?? this.keysToColors;\n    const saturationWeight = externalColorsSaturationWeight ?? this.colorsSaturationWeight;\n    if (keysToColors) {\n      for (const element of keysToColors) {\n        if (element[0] === key) {\n          colorHex = element[1];\n          break;\n        }\n      }\n      if (!colorHex) {\n        colorHex = this.getHexColor(key, saturationWeight);\n      }\n    } else {\n      colorHex = this.getHexColor(key, saturationWeight);\n    }\n    return colorHex;\n  }\n\n  public getTextColor(color: string): string {\n    return tinycolor(color).isDark() ? '#ffffff' : '#000000';\n  }\n\n  /**\n   * updates the color of the given keyword if the keyword exists already. Otherwise it adds the new keyword and the corresponding color\n   * @param keyword\n   * @param color\n   */\n  public updateKeywordColor(keyword: string, color: string): void {\n    const existingColor = this.keysToColorsMap.get(keyword);\n    if (!existingColor) {\n      this.keysToColorsMap.set(keyword, color);\n      this.keysToColors.push([keyword, color]);\n    } else {\n      this.keysToColorsMap.set(keyword, color);\n      /** rebuilt list from scratch */\n      this.keysToColors = [];\n      this.keysToColorsMap.forEach((c, k) => {\n        this.keysToColors.push([k, c]);\n      });\n    }\n    this.changekeysToColors.next();\n  }\n\n  /**\n   * Set the keyToColors list. Updates the keysToColorsMap in order to be up to date with the list\n   */\n  public setKeysToColors(keysToColors: Array<[string, string]>): void {\n    this.keysToColors = keysToColors;\n    this.keysToColorsMap = new Map<string, string>();\n    this.keysToColors.forEach(item => {\n      this.keysToColorsMap.set(item[0], item[1]);\n    });\n    this.changekeysToColors.next();\n  }\n\n  private getHexColor(key: string, saturationWeight: number): string {\n    const text = key.toString() + ':' + key.toString().split('').reverse().join('') + ':' + key.toString();\n    // string to int\n    let hash = 0;\n    for (let i = 0; i < text.length; i++) {\n      hash = text.charCodeAt(i) + ((hash << 5) - hash);\n    }\n    // int to rgb\n    let hex = (hash & 0x00FFFFFF).toString(16).toUpperCase();\n    hex = '00000'.substring(0, 6 - hex.length) + hex;\n    const color = tinycolor.mix(hex, hex);\n    color.lighten(5);\n    const saturation = color.toHsv().s;\n    if (saturation < (1 - saturationWeight) * 100) {\n      const range = (1 - saturationWeight) * 100 - saturation;\n      color.saturate(range);\n    }\n    color.brighten(10);\n    return color.toHexString();\n  }\n\n  private setColorsFromAggregations(): void {\n    this.keysToColorsMap = new Map<string, string>();\n    this.keysToColors.forEach(item => {\n      this.keysToColorsMap.set(item[0], item[1]);\n    });\n    if (this.colorAggregations) {\n      this.colorAggregations.forEach(aggregations => {\n        this.collaborativesearchService.resolveAggregation([projType.aggregate, aggregations], new Map(),\n          this.collaborativesearchService.defaultCollection)\n          .subscribe(agg => {\n            const firstAggregationElements = agg.elements;\n            firstAggregationElements?.forEach(element => {\n              if (!this.keysToColorsMap.has(element.key) && element.elements && element.elements.length > 0) {\n                this.keysToColorsMap.set(element.key, element.elements[0].key);\n                this.keysToColors.push([element.key, element.elements[0].key]);\n              }\n            });\n          });\n      });\n    }\n  }\n\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';\nimport { NgModule } from '@angular/core';\nimport { MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';\nimport {\n  BaseCollectionService, CollectionModule, ColorGeneratorLoader, ColorGeneratorModule, TaskSettingsService\n} from 'arlas-web-components';\nimport { MarkdownModule } from 'ngx-markdown';\nimport { AnalyticsBoardComponent } from './components/analytics/analytics-board/analytics-board.component';\nimport { AnalyticsMenuComponent } from './components/analytics/analytics-menu/analytics-menu.component';\nimport { AoiComponent } from './components/aoi/aoi.component';\nimport { BookmarkMenuComponent } from './components/bookmark-menu/bookmark-menu.component';\nimport { BookmarkAddDialogComponent } from './components/bookmark/bookmark-add-dialog.component';\nimport { BookmarkComponent } from './components/bookmark/bookmark.component';\nimport {\n  CalendarTimelineTooltipOverlayComponent\n} from './components/calendar-timeline-tooltip-overlay/calendar-timeline-tooltip-overlay.component';\nimport { CalendarTimelineToolComponent } from './components/calendar-timeline/calendar-timeline.component';\nimport { ActionModalComponent } from './components/config-manager/action-modal/action-modal.component';\nimport { ConfirmModalComponent } from './components/confirm-modal/confirm-modal.component';\nimport { DeniedAccessDialogComponent } from './components/denied-access-dialog/denied-access-dialog.component';\nimport { DownloadComponent, DownloadDialogComponent } from './components/download/download.component';\nimport { ExtendComponent } from './components/extend/extend.component';\nimport { FilterShortcutChipComponent } from './components/filter-shortcut/chip/chip.component';\nimport { FilterShortcutComponent } from './components/filter-shortcut/filter-shortcut.component';\nimport {\n  ShortcutFiltersHandlerComponent\n} from './components/filter-shortcut/filters-handler/filters-handler.component';\nimport {\n  FiltersComponent\n} from './components/filters/filters.component';\nimport { HistogramWidgetComponent } from './components/histogram-widget/histogram-widget.component';\nimport { LanguageSwitcherComponent } from './components/language-switcher/language-switcher.component';\nimport {\n  PermissionsCreatorDialogComponent\n} from './components/permissions-creator/permissions-creator-dialog/permissions-creator-dialog.component';\nimport { PermissionsCreatorComponent } from './components/permissions-creator/permissions-creator.component';\nimport { ProgressSpinnerComponent } from './components/progress-spinner/progress-spinner.component';\nimport { ReconnectDialogComponent } from './components/reconnect-dialog/reconnect-dialog.component';\nimport { SearchComponent, SearchDialogComponent } from './components/search/search.component';\nimport { ShareComponent, ShareDialogComponent } from './components/share/share.component';\nimport { DatePickerComponent } from './components/timeline/date-picker/date-picker.component';\nimport { TimelineShortcutComponent } from './components/timeline/timeline-shortcut/timeline-shortcut.component';\nimport { TimelineComponent } from './components/timeline/timeline/timeline.component';\nimport { AboutComponent, AboutDialogComponent } from './components/top-menu/about/about.component';\nimport { LinkComponent } from './components/top-menu/links/link/link.component';\nimport { LinksComponent } from './components/top-menu/links/links.component';\nimport { TopMenuComponent } from './components/top-menu/top-menu.component';\nimport { UserInfosComponent } from './components/user-infos/user-infos.component';\nimport { WidgetComponent } from './components/widget/widget.component';\nimport { ArlasTaskService } from './services/arlas.task.service';\nimport { ArlasCollaborativesearchService } from './services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasCollectionService } from './services/collection/arlas-collection.service';\nimport { ArlasOverlayService } from './services/overlays/overlay.service';\nimport { ArlasConfigService, ArlasStartupService } from './services/startup/startup.service';\nimport { ArlasWalkthroughModule } from './services/walkthrough/walkthrough.module';\nimport { ArlasColorGeneratorLoader } from './tools/color-generator-loader';\n\n\nconst exports = [\n  AnalyticsBoardComponent,\n  AnalyticsMenuComponent,\n  AoiComponent,\n  BookmarkComponent,\n  BookmarkAddDialogComponent,\n  BookmarkMenuComponent,\n  CalendarTimelineToolComponent,\n  ConfirmModalComponent,\n  DatePickerComponent,\n  DownloadComponent,\n  DownloadDialogComponent,\n  ExtendComponent,\n  FiltersComponent,\n  LanguageSwitcherComponent,\n  LinkComponent,\n  PermissionsCreatorComponent,\n  PermissionsCreatorDialogComponent,\n  SearchComponent,\n  SearchDialogComponent,\n  ShareComponent,\n  ShareDialogComponent,\n  TimelineComponent,\n  TimelineShortcutComponent,\n  HistogramWidgetComponent,\n  ProgressSpinnerComponent,\n  UserInfosComponent,\n  ReconnectDialogComponent,\n  DeniedAccessDialogComponent,\n  CalendarTimelineTooltipOverlayComponent,\n  WidgetComponent,\n  FilterShortcutComponent,\n  FilterShortcutChipComponent,\n  ShortcutFiltersHandlerComponent,\n  TopMenuComponent,\n  AboutComponent,\n  AboutDialogComponent,\n  LinksComponent,\n  LinkComponent,\n  ActionModalComponent,\n];\n\n@NgModule({\n  imports: [\n    CollectionModule.forRoot({\n      loader: {\n        deps: [\n          ArlasCollaborativesearchService,\n          ArlasConfigService,\n          ArlasStartupService\n        ],\n        provide: BaseCollectionService,\n        useClass: ArlasCollectionService\n      }\n    }),\n    ColorGeneratorModule.forRoot({\n      loader: {\n        provide: ColorGeneratorLoader,\n        useClass: ArlasColorGeneratorLoader,\n        deps: [ArlasConfigService, ArlasCollaborativesearchService]\n      }\n    }),\n    ArlasWalkthroughModule.forRoot(),\n    MarkdownModule.forRoot(),\n    ...exports\n  ],\n  exports: exports,\n  providers: [\n    ArlasOverlayService,\n    ArlasCollectionService,\n    provideHttpClient(withInterceptorsFromDi()),\n    {\n      provide: MAT_DIALOG_DEFAULT_OPTIONS,\n      useValue: {\n        autoFocus: false\n      }\n    },\n    {\n      provide: TaskSettingsService,\n      useClass: ArlasTaskService\n    }\n  ]\n})\nexport class ArlasToolkitSharedModule { }\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { forwardRef, NgModule } from '@angular/core';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { TagComponent, TagDialogComponent, TagManagementDialogComponent } from './components/tag/tag.component';\nimport { ArlasTagService } from './services/tag/tag.service';\n\n@NgModule({\n  imports: [\n    BrowserAnimationsModule,\n    TagComponent,\n    TagDialogComponent,\n    TagManagementDialogComponent\n  ],\n  exports: [\n    TagComponent\n  ],\n  providers: [\n    forwardRef(() => ArlasTagService)\n  ],\n  bootstrap: []\n})\nexport class ArlasTaggerModule { }\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { Location } from '@angular/common';\nimport { AfterViewInit, Component, OnDestroy, OnInit } from '@angular/core';\nimport { ActivatedRoute, Params, Router } from '@angular/router';\nimport { interval } from 'rxjs';\nimport { take } from 'rxjs/operators';\nimport { ArlasCollaborativesearchService } from './services/collaborative-search/arlas.collaborative-search.service';\nimport { ErrorService } from './services/error/error.service';\nimport { ArlasConfigService, ArlasStartupService } from './services/startup/startup.service';\nimport { ArlasWalkthroughService } from './services/walkthrough/walkthrough.service';\n\n@Component({\n  selector: 'arlas-tool-root',\n  styleUrls: ['./toolkit.component.scss'],\n  template: ''\n})\nexport class ToolkitComponent implements AfterViewInit, OnInit, OnDestroy {\n\n  public analyticsOpen = false;\n\n  public constructor(\n    private readonly configService: ArlasConfigService,\n    private readonly arlasStartupService: ArlasStartupService,\n    private readonly collaborativeService: ArlasCollaborativesearchService,\n    private readonly activatedRoute: ActivatedRoute,\n    private readonly router: Router,\n    private readonly location: Location,\n    private readonly walkthroughService: ArlasWalkthroughService,\n    private readonly errorService: ErrorService\n  ) {\n    if (!this.arlasStartupService.emptyMode) {\n      this.collaborativeService.collaborationBus.subscribe(collaborationEvent => {\n        // update url when filter are set\n        const queryParams: Params = { ...this.activatedRoute.snapshot.queryParams };\n        queryParams['filter'] = this.collaborativeService.urlBuilder().split('filter=')[1];\n        this.router.navigate([], { queryParams: queryParams, relativeTo: this.activatedRoute });\n        this.collaborativeService.ongoingSubscribe.subscribe(nb => {\n          if (collaborationEvent.id === 'url') {\n            if (!this.collaborativeService.endOfUrlCollaboration) {\n              this.collaborativeService.endOfUrlCollaboration = this.collaborativeService.totalSubscribe === 0;\n            }\n          }\n        });\n        if (collaborationEvent.id !== 'url') {\n          this.collaborativeService.endOfUrlCollaboration = true;\n        }\n      });\n    }\n\n    this.errorService.listenToArlasCollaborativeErrors();\n  }\n\n  public ngOnInit(): void {\n    // update app when user click on back/next browser button\n    this.location.subscribe(x => {\n      if (!this.arlasStartupService.emptyMode) {\n        let dataModel = {};\n        x.url?.split('&').forEach(param => {\n          if (param.split('filter=')[1]) {\n            dataModel = this.collaborativeService.dataModelBuilder(decodeURI(param.split('filter=')[1]), true);\n          }\n        });\n        this.collaborativeService.setCollaborations(dataModel);\n      }\n    });\n  }\n\n  public ngAfterViewInit(): void {\n    const config = this.configService.getConfig() as Record<string, any>;\n    if (config?.['error'] !== undefined) {\n      this.configService.confErrorBus.next(config['error']);\n    } else if (this.arlasStartupService.shouldRunApp) {\n      interval(400).pipe(take(1)).subscribe(() => {\n        const filter = this.activatedRoute.snapshot.queryParams['filter'];\n        if (filter) {\n          const dataModel = this.collaborativeService.dataModelBuilder(filter, true);\n          this.collaborativeService.setCollaborations(dataModel);\n        } else {\n          this.collaborativeService.setCollaborations({});\n        }\n      });\n    }\n    this.walkthroughService.load();\n  }\n\n  public ngOnDestroy(): void {\n    this.errorService.unlistenToArlasCollaborativeErrors();\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { LoginComponent } from './components/login/login.component';\nimport { RegisterComponent } from './components/register/register.component';\nimport { ToolkitComponent } from './toolkit.component';\nimport { VerifyComponent } from './components/verify/verify.component';\nimport { ResetComponent } from './components/reset/reset.component';\nimport { ForgotComponent } from './components/forgot/forgot.component';\n\nexport const routes: Routes = [\n  { path: '', component: ToolkitComponent },\n  { path: 'callback', redirectTo: '' },\n  { path: 'login', component: LoginComponent },\n  { path: 'register', component: RegisterComponent },\n  { path: 'verify/:id/user/:token', component: VerifyComponent },\n  { path: 'password_forgot', component: ForgotComponent },\n  { path: 'reset/:id/user/:token', component: ResetComponent },\n];\n\n@NgModule({\n  imports: [RouterModule.forRoot(routes)],\n  exports: [RouterModule]\n})\nexport class ToolkitRoutingModule { }\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { MatPaginatorIntl } from '@angular/material/paginator';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Subject } from 'rxjs';\n\nexport class PaginatorI18n implements MatPaginatorIntl {\n\n  public changes: Subject<void>;\n  public itemsPerPageLabel!: string;\n  public nextPageLabel!: string;\n  public previousPageLabel!: string;\n  public firstPageLabel!: string;\n  public lastPageLabel!: string;\n\n  public constructor(\n    private readonly translate: TranslateService\n  ) {\n    this.changes = new Subject();\n    this.initLabels();\n    this.translate.onLangChange.subscribe({\n      next: () => {\n        this.initLabels();\n      }\n    });\n  }\n\n  public initLabels() {\n    this.itemsPerPageLabel = this.translate.instant('ITEMS_PER_PAGE_LABEL');\n    this.nextPageLabel = this.translate.instant('NEXT_PAGE_LABEL');\n    this.previousPageLabel = this.translate.instant('PREVIOUS_PAGE_LABEL');\n    this.firstPageLabel = this.translate.instant('FIRST_PAGE_LABEL');\n    this.lastPageLabel = this.translate.instant('LAST_PAGE_LABEL');\n    this.changes.next();\n  }\n\n  public getRangeLabel(page: number, pageSize: number, length: number): string {\n    if (length === 0 || pageSize === 0) {\n      return this.translate.instant('RANGE_PAGE_LABEL_1', { length });\n    }\n    length = Math.max(length, 0);\n    const startIndex = page * pageSize;\n    // If the start index exceeds the list length, do not try and fix the end index to the end.\n    const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\n    return this.translate.instant('RANGE_PAGE_LABEL_2', { startIndex: startIndex + 1, endIndex, length });\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nimport { forwardRef, inject, NgModule, provideAppInitializer } from '@angular/core';\nimport { MatPaginatorIntl } from '@angular/material/paginator';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { OWL_DATE_TIME_LOCALE, OwlDateTimeIntl } from '@danielmoncada/angular-datetime-picker';\nimport { TranslateService } from '@ngx-translate/core';\nimport { OAuthModule, ValidationHandler } from 'angular-oauth2-oidc';\nimport { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\nimport { ShortenNumberPipe } from 'arlas-web-components';\nimport { DeviceDetectorService } from 'ngx-device-detector';\nimport { ArlasTranslateIntl } from './components/timeline/date-picker/ArlasTranslateIntl';\nimport { ArlasAoiService } from './services/aoi/aoi.service';\nimport { ArlasIamService } from './services/arlas-iam/arlas-iam.service';\nimport { AuthGuardIamService } from './services/arlas-iam/auth-guard-iam.service';\nimport { AuthentificationService } from './services/authentification/authentification.service';\nimport { ArlasBookmarkService } from './services/bookmark/bookmark.service';\nimport { ArlasCollaborativesearchService } from './services/collaborative-search/arlas.collaborative-search.service';\nimport { ArlasConfigurationDescriptor } from './services/configuration-descriptor/configurationDescriptor.service';\nimport { ErrorService } from './services/error/error.service';\nimport { ArlasExportCsvService } from './services/export-csv/export-csv.service';\nimport { ArlasExtendService } from './services/extend/extend.service';\nimport { ArlasMapSettings } from './services/map-settings/map-settings.service';\nimport { ArlasMapService } from './services/map/map.service';\nimport { PermissionService } from './services/permission/permission.service';\nimport { PersistenceService } from './services/persistence/persistence.service';\nimport { ArlasSettingsService } from './services/settings/arlas.settings.service';\nimport { ArlasConfigService, ArlasStartupService, CONFIG_UPDATER, FETCH_OPTIONS } from './services/startup/startup.service';\nimport { ArlasWalkthroughService } from './services/walkthrough/walkthrough.service';\nimport { WidgetNotifierService } from './services/widget/widget.notifier.service';\nimport { ArlasToolkitSharedModule } from './shared.module';\nimport { ToolkitRoutingModule } from './toolkit-routing.module';\nimport { ToolkitComponent } from './toolkit.component';\nimport { PaginatorI18n } from './tools/paginatori18n';\nimport { GET_OPTIONS } from './tools/utils';\n\nexport function settingsServiceFactory(settings: ArlasSettingsService) {\n  return settings;\n}\n\nexport function configServiceFactory(config: ArlasConfigService) {\n  return config;\n}\n\nexport function auhtentServiceFactory(service: AuthentificationService) {\n  return service;\n}\n\nexport function iamServiceFactory(service: ArlasIamService) {\n  return service;\n}\n\nexport function localDatePickerFactory(translate: TranslateService) {\n  return translate.getCurrentLang();\n}\n\nexport function configUpdaterFactory(x: any): any {\n  return (x: any) => x[0];\n}\n\nexport function getOptionsFactory(settingsService: ArlasSettingsService,\n  arlasAuthService: AuthentificationService, arlasIamService: ArlasIamService\n): () => { headers?: Record<string, any>; } {\n  const getOptions = () => {\n    let token = null;\n    const authSettings = settingsService.getAuthentSettings();\n    let authentMode = authSettings ? authSettings.auth_mode : undefined;\n    const isAuthentActivated = !!authSettings && !!authSettings.use_authent;\n    if (isAuthentActivated && !authentMode) {\n      authentMode = 'openid';\n    }\n    if (isAuthentActivated) {\n      if (!!authentMode && authentMode === 'iam') {\n        token = arlasIamService.getAccessToken();\n      } else {\n        token = arlasAuthService.accessToken ? arlasAuthService.accessToken : null;\n      }\n      if (token === null) {\n        return {};\n      } else {\n        const headers: Record<string, any> = {\n          Authorization: 'Bearer ' + token\n        };\n        if (authentMode === 'iam') {\n          const org = arlasIamService.getOrganisation();\n          if (org) {\n            headers['arlas-org-filter'] = org;\n          }\n        }\n        return { headers };\n      }\n    } else {\n      return {};\n    }\n  };\n  return getOptions;\n}\n\nexport const MY_CUSTOM_FORMATS = {\n  parseInput: 'lll',\n  fullPickerInput: 'll LTS',\n  datePickerInput: 'lll',\n  timePickerInput: 'lll',\n  monthYearLabel: 'MMM YYYY',\n  dateA11yLabel: 'lll',\n  monthYearA11yLabel: 'MMMM YYYY',\n};\n\n@NgModule({\n  imports: [\n    ToolkitRoutingModule,\n    ArlasToolkitSharedModule,\n    BrowserModule,\n    BrowserAnimationsModule,\n    OAuthModule.forRoot(),\n    ToolkitComponent\n  ],\n  exports: [ToolkitComponent],\n  providers: [\n    DeviceDetectorService,\n    {\n      provide: FETCH_OPTIONS,\n      useValue: {\n        referrerPolicy: 'origin'\n      }\n    },\n    {\n      provide: CONFIG_UPDATER,\n      useFactory: configUpdaterFactory\n    },\n    forwardRef(() => ArlasAoiService),\n    forwardRef(() => ArlasBookmarkService),\n    forwardRef(() => ArlasSettingsService),\n    forwardRef(() => ArlasConfigService),\n    forwardRef(() => ArlasCollaborativesearchService),\n    forwardRef(() => AuthentificationService),\n    forwardRef(() => ArlasIamService),\n    forwardRef(() => WidgetNotifierService),\n    forwardRef(() => ArlasStartupService),\n    forwardRef(() => ArlasMapSettings),\n    forwardRef(() => ArlasMapService),\n    forwardRef(() => ArlasConfigurationDescriptor),\n    forwardRef(() => ArlasExtendService),\n    forwardRef(() => ArlasWalkthroughService),\n    forwardRef(() => ArlasExportCsvService),\n    forwardRef(() => PersistenceService),\n    forwardRef(() => PermissionService),\n    forwardRef(() => ErrorService),\n    provideAppInitializer(() => inject(ArlasStartupService).load()),\n    {\n      provide: 'ArlasSettingsService',\n      useFactory: settingsServiceFactory,\n      deps: [ArlasSettingsService],\n      multi: true\n    },\n    {\n      provide: 'ArlasConfigService',\n      useFactory: configServiceFactory,\n      deps: [ArlasConfigService],\n      multi: true\n    },\n    {\n      provide: 'AuthentificationService',\n      useFactory: auhtentServiceFactory,\n      deps: [AuthentificationService],\n      multi: true\n    },\n    {\n      provide: OWL_DATE_TIME_LOCALE,\n      useFactory: localDatePickerFactory,\n      deps: [TranslateService]\n    },\n    { provide: OwlDateTimeIntl, useClass: ArlasTranslateIntl, deps: [TranslateService] },\n    {\n      provide: ValidationHandler,\n      useClass: JwksValidationHandler\n    },\n    {\n      provide: GET_OPTIONS,\n      useFactory: getOptionsFactory,\n      deps: [ArlasSettingsService, AuthentificationService, ArlasIamService]\n    },\n    {\n      provide: MatPaginatorIntl,\n      deps: [TranslateService],\n      useClass: PaginatorI18n\n    },\n    ShortenNumberPipe,\n    AuthGuardIamService,\n    ArlasIamService\n  ]\n})\nexport class ArlasToolKitModule { }\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { marker } from '@colsen1991/ngx-translate-extract-marker';\nimport { ArlasError } from './error';\n\n/** Error sent when failing to access dashboards */\nexport class DashboardError extends ArlasError {\n  public constructor(status: number, private readonly hubUrl: string) {\n    const title = marker('Could not access the dashboard');\n\n    let message: string = marker('The connection to dashbords is lost');\n    let actionMessage: string | undefined;\n    if (status === 403) {\n      actionMessage = marker('go to arlas hub');\n      message = marker('dashboard access forbidden');\n    } else if (status === 401) {\n      actionMessage = marker('go to arlas hub');\n      message = marker('dashboard access not authorized');\n    } else if (status === 404) {\n      actionMessage = marker('go to arlas hub');\n      message = marker('dashboard does not exist');\n    }\n\n    super(status, title, message);\n\n    this.actionType = 'link';\n    this.showAction = !!this.hubUrl;\n    this.actionMessage = actionMessage;\n  }\n\n  public executeAction() {\n    this.goToArlasHub();\n  }\n\n  private goToArlasHub() {\n    if (this.hubUrl) {\n      window.open(this.hubUrl, '_self');\n    }\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { HttpEvent, HttpHandler, HttpHeaders, HttpInterceptor, HttpRequest } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { PROTECTED_REQUEST_HEADER } from 'arlas-web-components';\nimport { Observable } from 'rxjs';\nimport { ArlasIamService } from '../services/arlas-iam/arlas-iam.service';\nimport { AuthentificationService } from '../services/authentification/authentification.service';\nimport { ArlasSettingsService } from '../services/settings/arlas.settings.service';\n\n@Injectable()\nexport class JwtInterceptor implements HttpInterceptor {\n\n  public constructor(\n    private readonly authenticationService: AuthentificationService,\n    private readonly iamService: ArlasIamService,\n    private readonly settingsService: ArlasSettingsService\n  ) { }\n\n  public intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>> {\n    // Intercepts quicklook requests to add token\n    if (!request.headers.has(PROTECTED_REQUEST_HEADER) || request.headers.get(PROTECTED_REQUEST_HEADER) !== 'true') {\n      return next.handle(request);\n    }\n    request = request.clone({\n      headers: request.headers.delete(PROTECTED_REQUEST_HEADER)\n    });\n\n    const authSettings = this.settingsService.getAuthentSettings();\n    let authentMode = authSettings ? authSettings.auth_mode : undefined;\n    if (!!authSettings && !!authSettings.use_authent && !authentMode) {\n      authentMode = 'openid';\n    }\n\n    // add authorization header with accessToken to Http request if logged\n    if (authentMode === 'openid') {\n      const hasValidAccessToken = this.authenticationService.hasValidAccessToken();\n      if (hasValidAccessToken) {\n        request = request.clone({\n          setHeaders: {\n            Authorization: `Bearer ${this.authenticationService.accessToken}`,\n          }\n        });\n      }\n    } else if (authentMode === 'iam') {\n      const token = this.iamService.getAccessToken();\n      if (token) {\n        let headers = new HttpHeaders({\n          'Authorization': `Bearer ${token}`\n        });\n        const org = this.iamService.getOrganisation();\n        if (org !== null && org !== undefined) {\n          headers = new HttpHeaders({\n            'Authorization': `Bearer ${token}`,\n            'arlas-org-filter': org\n          });\n        }\n        request = request.clone({headers});\n      }\n    }\n    return next.handle(request);\n  }\n}\n","/*\n * Licensed to Gisaïa under one or more contributor\n * license agreements. See the NOTICE.txt file distributed with\n * this work for additional information regarding copyright\n * ownership. Gisaïa licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nexport { AdmonitionCardComponent } from './lib/components/admonition-card/admonition-card.component';\nexport { AiasDownloadComponent, DOWNLOAD_PROCESS_NAME } from './lib/components/aias/aias-download/aias-download.component';\nexport { AiasEnrichComponent, ENRICH_PROCESS_NAME } from './lib/components/aias/aias-enrich/aias-enrich.component';\nexport { AiasDownloadDialogData, AiasProcess, AiasProcessDialogData } from './lib/components/aias/aias-process';\nexport { AiasResultComponent } from './lib/components/aias/aias-result/aias-result.component';\nexport { AnalyticsBoardComponent } from './lib/components/analytics/analytics-board/analytics-board.component';\nexport { AnalyticsMenuComponent } from './lib/components/analytics/analytics-menu/analytics-menu.component';\nexport {\n  AnalyticGroupConfiguration, AnalyticsTabs\n} from './lib/components/analytics/analytics.utils';\nexport { AoiComponent } from './lib/components/aoi/aoi.component';\nexport { BookmarkMenuComponent } from './lib/components/bookmark-menu/bookmark-menu.component';\nexport { BookmarkAddDialogComponent } from './lib/components/bookmark/bookmark-add-dialog.component';\nexport { BookmarkComponent } from './lib/components/bookmark/bookmark.component';\nexport {\n  CalendarTimelineTooltipOverlayComponent\n} from './lib/components/calendar-timeline-tooltip-overlay/calendar-timeline-tooltip-overlay.component';\nexport { CalendarTimelineToolComponent } from './lib/components/calendar-timeline/calendar-timeline.component';\nexport { ChangePasswordComponent } from './lib/components/change-password/change-password.component';\nexport { ActionModalComponent } from './lib/components/config-manager/action-modal/action-modal.component';\nexport { ConfigMenuComponent } from './lib/components/config-manager/config-menu/config-menu.component';\nexport { ConfirmModalComponent } from './lib/components/confirm-modal/confirm-modal.component';\nexport { DeniedAccessDialogComponent } from './lib/components/denied-access-dialog/denied-access-dialog.component';\nexport { DonutTooltipOverlayComponent } from './lib/components/donut-tooltip-overlay/donut-tooltip-overlay.component';\nexport { DownloadComponent, DownloadDialogComponent } from './lib/components/download/download.component';\nexport { ExtendComponent } from './lib/components/extend/extend.component';\nexport { FilterShortcutChipComponent } from './lib/components/filter-shortcut/chip/chip.component';\nexport { FilterShortcutComponent } from './lib/components/filter-shortcut/filter-shortcut.component';\nexport { FilterShortcutConfiguration } from './lib/components/filter-shortcut/filter-shortcut.utils';\nexport { ShortcutFiltersHandlerComponent } from './lib/components/filter-shortcut/filters-handler/filters-handler.component';\nexport {\n  FiltersComponent, GetCollaborationIconPipe, GetColorFilterPipe,\n  GetContributorLabelPipe, GetGlobalColorFilterPipe\n} from './lib/components/filters/filters.component';\nexport { ForgotComponent } from './lib/components/forgot/forgot.component';\nexport { HistogramTooltipOverlayComponent } from './lib/components/histogram-tooltip-overlay/histogram-tooltip-overlay.component';\nexport { HistogramWidgetComponent } from './lib/components/histogram-widget/histogram-widget.component';\nexport { LanguageSwitcherComponent } from './lib/components/language-switcher/language-switcher.component';\nexport { LoginComponent } from './lib/components/login/login.component';\nexport {\n  PermissionsCreatorDialogComponent\n} from './lib/components/permissions-creator/permissions-creator-dialog/permissions-creator-dialog.component';\nexport { PermissionsCreatorComponent } from './lib/components/permissions-creator/permissions-creator.component';\nexport { PowerbarTooltipOverlayComponent } from './lib/components/powerbar-tooltip-overlay/powerbar-tooltip-overlay.component';\nexport { DEFAULT_SPINNER_OPTIONS, ProgressSpinnerComponent } from './lib/components/progress-spinner/progress-spinner.component';\nexport { ReconnectDialogComponent } from './lib/components/reconnect-dialog/reconnect-dialog.component';\nexport { RegisterComponent } from './lib/components/register/register.component';\nexport { ResetComponent } from './lib/components/reset/reset.component';\nexport { SearchComponent, SearchDialogComponent } from './lib/components/search/search.component';\nexport { ExcludeTypePipe } from './lib/components/share/exclude-type.pipe';\nexport { ArlasSearchField } from './lib/components/share/model/ArlasSearchField';\nexport { ShareComponent, ShareDialogComponent, ShareLayerSourceConfig } from './lib/components/share/share.component';\nexport { TagComponent, TagDialogComponent, TagManagementDialogComponent } from './lib/components/tag/tag.component';\nexport { ArlasTranslateIntl } from './lib/components/timeline/date-picker/ArlasTranslateIntl';\nexport { DatePickerComponent } from './lib/components/timeline/date-picker/date-picker.component';\nexport {\n  ARLAS_DATE_TIME_FORMATS, ARLAS_OWL_MOMENT_ADAPTER_OPTIONS_OVERRIDE, DEFAULT_OWL_DATE_TIME_FORMATS_VALUE\n} from './lib/components/timeline/date-picker/date-time-formats.token';\nexport { TimelineShortcutComponent } from './lib/components/timeline/timeline-shortcut/timeline-shortcut.component';\nexport { TimelineComponent } from './lib/components/timeline/timeline/timeline.component';\nexport { CollectionLegend, TimelineConfiguration } from './lib/components/timeline/timeline/timeline.utils';\nexport { AboutComponent, AboutDialogComponent } from './lib/components/top-menu/about/about.component';\nexport { LinkComponent } from './lib/components/top-menu/links/link/link.component';\nexport { LinksComponent } from './lib/components/top-menu/links/links.component';\nexport { TopMenuComponent } from './lib/components/top-menu/top-menu.component';\nexport { UserInfosComponent } from './lib/components/user-infos/user-infos.component';\nexport { VerifyComponent } from './lib/components/verify/verify.component';\nexport { WidgetTooltipComponent } from './lib/components/widget-tooltip/widget-tooltip.component';\nexport { WidgetComponent } from './lib/components/widget/widget.component';\nexport { GetTimeLabelPipe } from './lib/pipes/get-time-label.pipe';\nexport { AnalyticsService } from './lib/services/analytics/analytics.service';\nexport { ArlasAoiService } from './lib/services/aoi/aoi.service';\nexport { AoiDatabase } from './lib/services/aoi/aoiDatabase';\nexport { Aoi } from './lib/services/aoi/model';\nexport { ArlasAuthentificationService } from './lib/services/arlas-authentification/arlas-authentification.service';\nexport { ARLAS_ORG_FILTER, ArlasIamService } from './lib/services/arlas-iam/arlas-iam.service';\nexport { AuthGuardIamService } from './lib/services/arlas-iam/auth-guard-iam.service';\nexport { ArlasTaskService } from './lib/services/arlas.task.service';\nexport { AuthentificationService } from './lib/services/authentification/authentification.service';\nexport { ArlasBookmarkService } from './lib/services/bookmark/bookmark.service';\nexport { BookmarkDataSource } from './lib/services/bookmark/bookmarkDataSource';\nexport { BookmarkLocalDatabase } from './lib/services/bookmark/bookmarkLocalDatabase';\nexport { BookmarkPersistenceDatabase } from './lib/services/bookmark/bookmarkPersistenceDatabase';\nexport { BookMark, BookMarkType } from './lib/services/bookmark/model';\nexport { ArlasCollaborativesearchService } from './lib/services/collaborative-search/arlas.collaborative-search.service';\nexport { ArlasCollectionService } from './lib/services/collection/arlas-collection.service';\nexport { ArlasConfigurationDescriptor } from './lib/services/configuration-descriptor/configurationDescriptor.service';\nexport { ArlasConfigurationUpdaterService } from './lib/services/configuration-updater/configurationUpdater.service';\nexport { ErrorService } from './lib/services/error/error.service';\nexport { ArlasExportCsvService } from './lib/services/export-csv/export-csv.service';\nexport { ArlasExtendService } from './lib/services/extend/extend.service';\nexport { ExtendLocalDatabase } from './lib/services/extend/extendLocalDatabase';\nexport { ExtendPersistenceDatabase } from './lib/services/extend/extendPersistenceDatabase';\nexport { Extend } from './lib/services/extend/model';\nexport { FetchInterceptorService } from './lib/services/interceptor/fetch-interceptor.service';\nexport { ArlasMapSettings } from './lib/services/map-settings/map-settings.service';\nexport { ArlasMapService } from './lib/services/map/map.service';\nexport { ArlasOverlayService, ToolTipConfig } from './lib/services/overlays/overlay.service';\nexport { PermissionService, PermissionSetting } from './lib/services/permission/permission.service';\nexport { PersistenceService, PersistenceSetting } from './lib/services/persistence/persistence.service';\nexport { ProcessService, ValidatedProcessFieldOption } from './lib/services/process/process.service';\nexport { ArlasSettingsService } from './lib/services/settings/arlas.settings.service';\nexport { ContributorBuilder } from './lib/services/startup/contributorBuilder';\nexport {\n  ArlasConfigService, ArlasExploreApi, ArlasIamApi, ArlasSettings,\n  ArlasStartupService, CONFIG_UPDATER, Error, ExtraConfig, FETCH_OPTIONS, LinkSettings\n} from './lib/services/startup/startup.service';\nexport { ArlasTagService } from './lib/services/tag/tag.service';\nexport { ArlasWalkthroughModule, WalkthroughModuleConfig } from './lib/services/walkthrough/walkthrough.module';\nexport { ArlasWalkthroughService } from './lib/services/walkthrough/walkthrough.service';\nexport { WalkthroughLoader } from './lib/services/walkthrough/walkthrough.utils';\nexport { WidgetNotifierService } from './lib/services/widget/widget.notifier.service';\nexport { ArlasToolkitSharedModule } from './lib/shared.module';\nexport { ArlasTaggerModule } from './lib/tagger.module';\nexport { ToolkitRoutingModule } from './lib/toolkit-routing.module';\nexport { ToolkitComponent } from './lib/toolkit.component';\nexport {\n  ArlasToolKitModule, auhtentServiceFactory, configServiceFactory, configUpdaterFactory,\n  getOptionsFactory, iamServiceFactory, localDatePickerFactory, MY_CUSTOM_FORMATS,\n  settingsServiceFactory\n} from './lib/toolkit.module';\nexport { ArlasDataSource } from './lib/tools/arlasDataSource';\nexport { ArlasLocalDatabase } from './lib/tools/arlasLocalDatabase';\nexport { ArlasPersistenceDatabase } from './lib/tools/arlasPersistenceDatabase';\nexport { ArlasColorGeneratorLoader } from './lib/tools/color-generator-loader';\nexport { NO_ORGANISATION } from './lib/tools/consts';\nexport { AuthorisationError } from './lib/tools/errors/authorisation-error';\nexport { BackendError } from './lib/tools/errors/backend-error';\nexport { DashboardError } from './lib/tools/errors/dashboard-error';\nexport { ActionType, ArlasError } from './lib/tools/errors/error';\nexport { JwtInterceptor } from './lib/tools/jwt.interceptor';\nexport { PaginatorI18n } from './lib/tools/paginatori18n';\nexport { ProcessOutput, ProcessStatus } from './lib/tools/process.interface';\nexport {\n  ArlasOverlayRef, ArlasStorageObject, ArlasStorageType, AuthentSetting, CollectionCount, CollectionUnit, Config, CONFIG_ID_QUERY_PARAM,\n  ConfigAction, ConfigActionEnum, DONUT_TOOLTIP_DATA, GET_OPTIONS, getFieldProperties, getKeyForColor, GetOptions, getParamValue, hashCode,\n  HISTOGRAM_TOOLTIP_DATA, intToRGB, MapService, NOT_CONFIGURED, sortOnDate, SpinnerOptions, WidgetConfiguration, ZoomToDataStrategy\n} from './lib/tools/utils';\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.ArlasSettingsService","i3.ArlasCollaborativesearchService","i1","i2","i4","i3","i5","i8","i9","i10","Subject","timer","takeUntil","BehaviorSubject","from","i1.ArlasSettingsService","i2.AuthentificationService","i3.ArlasIamService","i6","i7","i2.ErrorService","i4.AuthentificationService","i5.ArlasIamService","Configuration","arlasSettingsSchema.default","arlasConfSchema.default","IamConfiguration","i3.ArlasSettingsService","i4.ArlasCollaborativesearchService","i7.PersistenceService","i8.PermissionService","i9.ErrorService","i10.FetchInterceptorService","i11.ArlasIamService","i12.ProcessService","i1.ArlasConfigService","i2.ArlasCollaborativesearchService","i1.ArlasCollaborativesearchService","i2.ArlasConfigService","i2.ArlasStartupService","map","mergeMap","i5.ArlasCollectionService","i3.ArlasOverlayService","i4.WidgetNotifierService","i1.ArlasStartupService","i5.ArlasExportCsvService","i2.AnalyticsService","i1.AnalyticsService","i1.ArlasAoiService","i4.ArlasStartupService","i5.AuthentificationService","i6.ArlasIamService","i8.ArlasSettingsService","i2.ArlasBookmarkService","i1.ArlasOverlayService","i1.ArlasIamService","i1.PersistenceService","i3.ErrorService","i2.PersistenceService","i3.ArlasConfigService","i4.ErrorService","catchError","take","filter","i4.ArlasCollectionService","i5.ErrorService","i7.ArlasSettingsService","i8.AuthentificationService","i3.AuthentificationService","i4.ArlasIamService","i5.ArlasSettingsService","i11","i12","i14","i15","i16","i3.PersistenceService","i1.ArlasExtendService","i2.ArlasIamService","i5.ArlasConfigService","i6.ArlasSettingsService","i2.ArlasTagService","i4.ArlasConfigService","i5.ArlasCollaborativesearchService","i6.ArlasBookmarkService","i5.WidgetNotifierService","i6.ArlasCollectionService","i1.AuthentificationService","i7.FetchInterceptorService","i8.ErrorService","i13","i1.WalkthroughLoader","exports","i5.ArlasWalkthroughService","i6.ErrorService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;AAiBG;MAaU,uBAAuB,CAAA;IAC3B,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;wGADnB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EA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